dns_adapter 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dns_adapter/mock_client.rb +5 -0
- data/lib/dns_adapter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0483dc7da91d95937b2dff3030112364e6bf83
|
4
|
+
data.tar.gz: 0533d3a5065cbb55d1e0437ca6167a86fedfa7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b9fd402afa3ae99570c873d97bbaa3c76636101581836bb446555acf63328f4977cf0e0d8a44de419e13d4619facec6170eb9883a882ef6bd6d7a6b00bd3229
|
7
|
+
data.tar.gz: 453f44dc46487bb078e4842c3b9606248f83b805ee70bedce1184e0f54361e30e7bf34b939a7be642b88a63ebb6164617f5c9d5b1d19d9c3f488d08c3afe0abb
|
@@ -26,6 +26,10 @@ module DNSAdapter
|
|
26
26
|
fetch_records(arpa_address, 'PTR')
|
27
27
|
end
|
28
28
|
|
29
|
+
def fetch_ns_records(domain)
|
30
|
+
fetch_records(domain, 'NS')
|
31
|
+
end
|
32
|
+
|
29
33
|
def fetch_txt_records(domain)
|
30
34
|
fetch_records(domain, 'TXT')
|
31
35
|
end
|
@@ -75,6 +79,7 @@ module DNSAdapter
|
|
75
79
|
'AAAA' => :address,
|
76
80
|
'MX' => :exchange,
|
77
81
|
'PTR' => :name,
|
82
|
+
'NS' => :name,
|
78
83
|
'SPF' => :text,
|
79
84
|
'TXT' => :text
|
80
85
|
}
|
data/lib/dns_adapter/version.rb
CHANGED