@@ -34,9 +34,9 @@ If bundler is not being used to manage dependencies, install the gem by executin
3434ddig = Ddig .lookup(' dns.google' , nameservers: [' 8.8.8.8' , ' 2001:4860:4860::8888' ])
3535
3636ddig[:do53 ][:ipv4 ]
37- => # <Ddig::Resolver::Do53:0x00000001207aaeb0 @a=["8.8.4.4", "8.8.8.8"], @aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @hostname="dns.google", @ip=:ipv4, @nameservers=["8.8.8.8"]>
37+ => # <Ddig::Resolver::Do53:0x00000001207aaeb0 @a=["8.8.4.4", "8.8.8.8"], @a_response_time=18, @ aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @aaaa_response_time=16 , @hostname="dns.google", @ip=:ipv4, @nameservers=["8.8.8.8"]>
3838ddig[:do53 ][:ipv6 ]
39- => # <Ddig::Resolver::Do53:0x000000012073d2c0 @a=["8.8.4.4", "8.8.8.8"], @aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @hostname="dns.google", @ip=:ipv4, @nameservers=["2001:4860:4860::8888"]>
39+ => # <Ddig::Resolver::Do53:0x000000012073d2c0 @a=["8.8.4.4", "8.8.8.8"], @a_response_time=18, @ aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @aaaa_response_time=16 , @hostname="dns.google", @ip=:ipv4, @nameservers=["2001:4860:4860::8888"]>
4040
4141ddig[:ddr ]
4242=> [# <Ddig::Ddr::DesignatedResolver:0x0000000120735480
@@ -90,7 +90,7 @@ ddig[:ddr]
9090- Do53
9191``` ruby
9292do53 = Ddig ::Resolver ::Do53 .new (hostname: ' dns.google' , nameservers: ' 8.8.8.8' ).lookup
93- => # <Ddig::Resolver::Do53:0x0000000121717b78 @a=["8.8.8.8", "8.8.4.4"], @aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @hostname="dns.google", @ip=nil, @nameserver=#<Ddig::Nameserver:0x00000001211fb108 @nameservers="8.8.8.8", @servers=["8.8.8.8"]>, @nameservers=["8.8.8.8"]>
93+ => # <Ddig::Resolver::Do53:0x0000000121717b78 @a=["8.8.8.8", "8.8.4.4"], @a_response_time=18, @ aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @aaaa_response_time=16 , @hostname="dns.google", @ip=nil, @nameserver=#<Ddig::Nameserver:0x00000001211fb108 @nameservers="8.8.8.8", @servers=["8.8.8.8"]>, @nameservers=["8.8.8.8"]>
9494
9595do53.a
9696=> [" 8.8.4.4" , " 8.8.8.8" ]
@@ -101,7 +101,7 @@ do53.aaaa
101101- DoT
102102``` ruby
103103dot = Ddig ::Resolver ::Dot .new (hostname: ' dns.google' , server: ' 8.8.8.8' ).lookup
104- => # <Ddig::Resolver::Dot:0x000000012145da90 @a=["8.8.8.8", "8.8.4.4"], @aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @hostname="dns.google", @open_timeout=3, @port=853, @server="8.8.8.8", @server_name=nil>
104+ => # <Ddig::Resolver::Dot:0x000000012145da90 @a=["8.8.8.8", "8.8.4.4"], @a_response_time=108, @ aaaa=["2001:4860:4860::8844", "2001:4860:4860::8888"], @aaaa_response_time=122 , @hostname="dns.google", @open_timeout=3, @port=853, @server="8.8.8.8", @server_name=nil>
105105
106106dot.a
107107=> [" 8.8.4.4" , " 8.8.8.8" ]
@@ -112,7 +112,7 @@ dot.aaaa
112112- DoH (HTTP/1.1)
113113``` ruby
114114doh = Ddig ::Resolver ::DohH1 .new (hostname: ' dns.google' , server: ' dns.google' , dohpath: ' /dns-query{?dns}' ).lookup
115- => # <Ddig::Resolver::DohH1:0x00000001023ed020 @a=["8.8.4.4", "8.8.8.8"], @aaaa=["2001:4860:4860::8888", "2001:4860:4860::8844"], @address=nil, @dohpath="/dns-query{?dns}", @hostname="dns.google", @open_timeout=10, @port=443, @server="dns.google">
115+ => # <Ddig::Resolver::DohH1:0x00000001023ed020 @a=["8.8.4.4", "8.8.8.8"], @a_response_time=62, @ aaaa=["2001:4860:4860::8888", "2001:4860:4860::8844"], @aaaa_response_time=77 , @address=nil, @dohpath="/dns-query{?dns}", @hostname="dns.google", @open_timeout=10, @port=443, @server="dns.google">
116116
117117doh.a
118118=> [" 8.8.4.4" , " 8.8.8.8" ]
@@ -151,6 +151,8 @@ dns.google A 8.8.8.8
151151dns.google AAAA 2001:4860:4860::8844
152152dns.google AAAA 2001:4860:4860::8888
153153
154+ # Query time (A): 15 msec
155+ # Query time (AAAA): 15 msec
154156# SERVER: 8.8.8.8
155157
156158# DDR
@@ -160,6 +162,8 @@ dns.google A 8.8.8.8
160162dns.google AAAA 2001:4860:4860::8844
161163dns.google AAAA 2001:4860:4860::8888
162164
165+ # Query time (A): 114 msec
166+ # Query time (AAAA): 187 msec
163167# SERVER(Address): 8.8.4.4
164168# PORT: 853
165169
@@ -174,6 +178,8 @@ dns.google A 8.8.4.4
174178dns.google AAAA 2001:4860:4860::8844
175179dns.google AAAA 2001:4860:4860::8888
176180
181+ # Query time (A): 89 msec
182+ # Query time (AAAA): 105 msec
177183# SERVER(Hostname): 2001:4860:4860::8888
178184# SERVER(Path): /dns-query{?dns}
179185# PORT: 443
@@ -188,6 +194,8 @@ dns.google A 8.8.4.4
188194dns.google AAAA 2001:4860:4860::8844
189195dns.google AAAA 2001:4860:4860::8888
190196
197+ # Query time (A): 20 msec
198+ # Query time (AAAA): 16 msec
191199# SERVER: 8.8.8.8
192200```
193201
@@ -199,6 +207,8 @@ dns.google A 8.8.4.4
199207dns.google AAAA 2001:4860:4860::8888
200208dns.google AAAA 2001:4860:4860::8844
201209
210+ # Query time (A): 90 msec
211+ # Query time (AAAA): 167 msec
202212# SERVER(Address): 8.8.8.8
203213# PORT: 853
204214```
@@ -211,6 +221,8 @@ dns.google A 8.8.4.4
211221dns.google AAAA 2001:4860:4860::8888
212222dns.google AAAA 2001:4860:4860::8844
213223
224+ # Query time (A): 69 msec
225+ # Query time (AAAA): 70 msec
214226# SERVER(Hostname): dns.google
215227# SERVER(Path): /dns-query{?dns}
216228# PORT: 443
0 commit comments