diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-15 14:03:35 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-15 14:03:35 +0000 |
commit | 988d9019eafde8ff2eace46c61194df50c558b9b (patch) | |
tree | 20fbbc0af06f4ae8112dc2710ed2609a40e5bfc1 /lib/custodian/protocol-tests/dns.rb | |
parent | 15033259be8af2569229d2a6050b257887c0c652 (diff) |
Use the correct DNS-type for Nameserver records.
Diffstat (limited to 'lib/custodian/protocol-tests/dns.rb')
-rwxr-xr-x | lib/custodian/protocol-tests/dns.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocol-tests/dns.rb b/lib/custodian/protocol-tests/dns.rb index 50100ac..3d9f9fd 100755 --- a/lib/custodian/protocol-tests/dns.rb +++ b/lib/custodian/protocol-tests/dns.rb @@ -143,7 +143,7 @@ class DNSTest dns.getresources(name, Resolv::DNS::Resource::IN::AAAA).map{ |r| results.push r.address.to_s() } when /^NS$/ then - dns.getresources(name, Resolv::DNS::Resource::IN::MX).map{ |r| results.push Resolv.getaddresses(r.name.to_s()) } + dns.getresources(name, Resolv::DNS::Resource::IN::NS).map{ |r| results.push Resolv.getaddresses(r.name.to_s()) } when /^MX$/ then dns.getresources(name, Resolv::DNS::Resource::IN::MX).map{ |r| results.push Resolv.getaddresses(r.exchange.to_s()) } |