Package: bind9-host Version: 1:9.3.2-2 When I have a resolv.conf which have empty "search" directive, "host" command doesn't work as follows.
| % host www.debian.org | ;; connection timed out; no servers could be reached The resolv.conf is generated by dhcp-client as follows. | % cat /etc/resolv.conf | search | nameserver 192.168.1.1 Note that there is no space after "search" | % cat -e /etc/resolv.conf | search$ | nameserver 192.168.1.1$ This is a problem of "host" command because DNS works well with telnet. | % telnet www.debian.org 80 | Trying 194.109.137.218... | Connected to www.debian.org. | Escape character is '^]'. | ^] | telnet> close | Connection closed. strace shows that "host" command only querys to 127.0.0.1 and ::1. It doesn't query to 192.168.1.1. | % strace -fe sendmsg host www.debian.org | Process 17429 attached | Process 17430 attached | Process 17431 attached | [pid 17429] sendmsg(20, {msg_name(16)={sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, msg_iov(1)=[{"T\211\1\0\0\1\0\0\0\0\0\0\3www\6debian\3org\0\0\1\0\1", 32}], msg_controllen=0, msg_flags=0}, 0) = 32 | [pid 17429] sendmsg(21, {msg_name(28)={sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, msg_iov(1)=[{"T\211\1\0\0\1\0\0\0\0\0\0\3www\6debian\3org\0\0\1\0\1", 32}], msg_controllen=0, msg_flags=0}, 0) = 32 | [pid 17429] sendmsg(20, {msg_name(16)={sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, msg_iov(1)=[{"T\211\1\0\0\1\0\0\0\0\0\0\3www\6debian\3org\0\0\1\0\1", 32}], msg_controllen=0, msg_flags=0}, 0) = 32 | [pid 17429] sendmsg(21, {msg_name(28)={sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, msg_iov(1)=[{"T\211\1\0\0\1\0\0\0\0\0\0\3www\6debian\3org\0\0\1\0\1", 32}], msg_controllen=0, msg_flags=0}, 0) = 32 | ;; connection timed out; no servers could be reached | [pid 17428] --- SIGTERM (Terminated) @ 0 (0) --- | Process 17429 detached | Process 17431 detached | Process 17430 detached | Process 17428 detached If I modify resolv.conf to a space after "search", "host" command fails with parsing resolv.conf. | nute(9:22:28)% cat -e /etc/resolv.conf | search $ | nameserver 192.168.1.1$ | % host www.debian.org | host: parse of /etc/resolv.conf failed If I modify resolv.conf to swap lines in resolv.conf, "host" command also fails with parsing resolv.conf. | nute(9:22:48)% cat -e /etc/resolv.conf | nameserver 192.168.1.1$ | search$ | % host www.debian.org | host: parse of /etc/resolv.conf failed It seems very likely a bug of resolv.conf parser in "host" command. | % dpkg -l|egrep 'bind9|dhcp' | ii bind9-host 9.3.2-2 Version of 'host' bundled with BIND 9.X | ii dhcp-client 2.0pl5-19.4 DHCP Client | ii libbind9-0 9.3.2-2 BIND9 Shared Library used by BIND -- Tanaka Akira -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]