| Path: | lib/dnsruby/resource/RR.rb |
| Last Update: | Sat Feb 23 07:12:27 +0000 2019 |
Superclass for all Dnsruby resource records.
Represents a DNS RR (resource record) [RFC1035, section 3.2]
Use Dnsruby::RR::create(…) to create a new RR record.
mx = Dnsruby::RR.create("example.com. 7200 MX 10 mailhost.example.com.")
rr = Dnsruby::RR.create({:name => "example.com", :type => "MX", :ttl => 7200,
:preference => 10, :exchange => "mailhost.example.com"})
s = rr.to_s # Get a String representation of the RR (in zone file format)
rr_again = Dnsruby::RR.create(s)