dig vs drill. ns priority

From: Sergey V. Dyatko <sergey.dyatko_at_gmail.com>
Date: Wed, 16 Oct 2013 11:16:52 +0300
Hi,

I have desktop with 10-alpha2 (before BIND_* removal) and laptop/another
box with alpha3/11-CURRENT

All 3 boxes have the same /etc/resolv.conf:
# Generated by resolvconf
search minsk.domain
nameserver 192.168.9.250
nameserver 192.168.9.1

192.168.9.1 haven't named running, I forget to remove it from dhcpd.conf
long time ago. 
today I became interested why my laptop(and box with CURRENT) resolves
names so long (drill(1)), i.e. running command `drill domain.tld` give
me result after.. ~15sec ( ^t - load: 0.59  cmd: drill 6852 [select]
15.09r 0.00u 0.00s 0% 3956k)

tcpdump:
0:50:34.158172 IP (tos 0x0, ttl 64, id 27419, offset 0, flags [none],
proto UDP (17), length 68)
    192.168.9.150.22223 > 192.168.9.1.53: [udp sum ok] 54459+ A?
as2dasdasd.freebsd.org. (40)

10:50:39.162450 IP (tos 0x0, ttl 64, id 27422, offset 0, flags [none],
proto UDP (17), length 68)
    192.168.9.150.19755 > 192.168.9.1.53: [udp sum ok] 54459+ A?
as2dasdasd.freebsd.org. (40)

10:50:44.164578 IP (tos 0x0, ttl 64, id 27425, offset 0, flags [none],
proto UDP (17), length 68)
    192.168.9.150.41676 > 192.168.9.1.53: [udp sum ok] 54459+ A?
as2dasdasd.freebsd.org. (40)

10:50:49.165846 IP (tos 0x0, ttl 64, id 27448, offset 0, flags [none],
proto UDP (17), length 68)
    192.168.9.150.14580 > 192.168.9.250.53: [udp sum ok] 54459+ A?
as2dasdasd.freebsd.org. (40)

10:50:49.242053 IP (tos 0x0, ttl 64, id 55455, offset 0, flags [none],
proto UDP (17), length 119)
    192.168.9.250.53 > 192.168.9.150.14580: [udp sum ok] 54459 NXDomain
    q: A? as2dasdasd.freebsd.org. 0/1/0 ns: freebsd.org. SOA
    ns0.freebsd.org. hostmaster.freebsd.org. 2013101502 3600 900 604800
    600 (91)

on desktop dig using 1st nameserver from list, according to tcpdumps
output. 


-- 
wbr, tiger
Received on Wed Oct 16 2013 - 06:16:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC