Package: bind9-host Version: 1:9.6.ESV.R4+dfsg-0+lenny3 Severity: normal The host utility will walk though the search domains list trying each. In cases where a FQDN is given however, it doesn't seem to completely alter its behaivor as should be expected.
$ grep search /etc/resolv.conf search rut.org. mv.com. mv.net. $ host example [ tcpdump -ni lo dst port domain ] 15:35:16.156192 IP 127.0.0.1.51316 > 127.0.0.1.53: 42742+ A? example.rut.org. (33) 15:35:16.158567 IP 127.0.0.1.48640 > 127.0.0.1.53: 4044+ A? example.mv.com. (32) 15:35:16.159905 IP 127.0.0.1.37691 > 127.0.0.1.53: 47655+ A? example.mv.net. (32) 15:35:16.161066 IP 127.0.0.1.42682 > 127.0.0.1.53: 8501+ A? example. (25) However, when indicating that the given lookup is for an absolute domain name, by adding a period to the end, host still appears to walk the search domains list. Although the queries are correct, that it makes the same query repeatedly for each search domain seems unnecessary behaivor. $ host example. 15:38:44.531102 IP 127.0.0.1.55513 > 127.0.0.1.53: 42840+ A? example. (25) 15:38:44.532893 IP 127.0.0.1.34474 > 127.0.0.1.53: 12833+ A? example. (25) 15:38:44.534173 IP 127.0.0.1.44335 > 127.0.0.1.53: 29302+ A? example. (25) 15:38:44.535548 IP 127.0.0.1.41779 > 127.0.0.1.53: 34991+ A? example. (25) dig on the other hand appears to do the expected thing and only a single lookup is made for "example.". -- System Information: Debian Release: 5.0.9 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages bind9-host depends on: ii libbind9-50 1:9.6.ESV.R4+dfsg-0+lenny3 BIND9 Shared Library used by BIND ii libc6 2.7-18lenny7 GNU C Library: Shared libraries ii libcap2 2.11-2 support for getting/setting POSIX. ii libdns58 1:9.6.ESV.R4+dfsg-0+lenny3 DNS Shared Library used by BIND ii libisc50 1:9.6.ESV.R4+dfsg-0+lenny3 ISC Shared Library used by BIND ii libisccc50 1:9.6.ESV.R4+dfsg-0+lenny3 Command Channel Library used by BI ii libisccfg50 1:9.6.ESV.R4+dfsg-0+lenny3 Config File Handling Library used ii libkrb53 1.6.dfsg.4~beta1-5lenny6 MIT Kerberos runtime libraries ii liblwres50 1:9.6.ESV.R4+dfsg-0+lenny3 Lightweight Resolver Library used ii libssl0.9.8 0.9.8g-15+lenny13 SSL shared libraries ii libxml2 2.6.32.dfsg-5+lenny4 GNOME XML library bind9-host recommends no packages. bind9-host suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org