class DNS::RR::Record

Defined in:

dns/rr/record.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_io(io : IO, format : IO::ByteFormat) : self #

[View source]
def self.new(name : DNS::Name = Name.new, record_type : DNS::RecordType = RecordType::AAAA, record_class : DNS::RecordClass = RecordClass::Internet, ttl : UInt32 = 0_u32, data : DNS::IPv4Address | DNS::IPv6Address | DNS::Name | DNS::RR::HINFO | DNS::RR::MX | DNS::RR::SOA | Slice(UInt8) = Bytes.new(0)) #

[View source]

Instance Method Detail

def data : Data #

[View source]
def data=(data : Data) #

[View source]
def name : Name #

[View source]
def name=(name : Name) #

[View source]
def record_class : RecordClass #

[View source]
def record_class=(record_class : RecordClass) #

[View source]
def record_type : RecordType #

[View source]
def record_type=(record_type : RecordType) #

[View source]
def to_io(io : IO, format : IO::ByteFormat) #

[View source]
def ttl : UInt32 #

[View source]
def ttl=(ttl : UInt32) #

[View source]