class DNS::RR::Record
- DNS::RR::Record
- Reference
- Object
Defined in:
dns/rr/record.crConstructors
- .from_io(io : IO, format : IO::ByteFormat) : 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))
Instance Method Summary
- #data : Data
- #data=(data : Data)
- #name : Name
- #name=(name : Name)
- #record_class : RecordClass
- #record_class=(record_class : RecordClass)
- #record_type : RecordType
- #record_type=(record_type : RecordType)
- #to_io(io : IO, format : IO::ByteFormat)
- #ttl : UInt32
- #ttl=(ttl : UInt32)
Constructor Detail
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))
#