Summary: 2 Freebsd -stable machines. 1 is NAT/Gateway for the other. The machine behind the gateway can not resolve DNS for anything that matters like cvsup, but dig and nslookup resolve fine. By all appearances it's ignoring /etc/resolv.conf and selectively answering programs. As a test, a windows machine was hooked up on the network and static-ly provided an IP address (problem machine is static too) and it could resolve fine on the 24.153.158.62 nameserver. These are from the machine behind the nat/gateway. Notice without specifying what server to query with dig, it ignores /etc/resolv.conf and queries localhost. What am I missing? (digs are trimmed to practical information for brevity.) Wed Jul 06 12:30:23 root@10:( /usr/src/) $ uname -a FreeBSD 10.4.10.75 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu Jun 23 10:59:58 CDT 2005 root@10.4.10.75:/usr/obj/usr/src/sys/WEB-NOIPV6 i386 Wed Jul 06 12:30:28 root@10:( /usr/src/) $ cat /etc/resolve.conf nameserver 10.4.10.1 nameserver 24.153.158.62 Wed Jul 06 12:30:31 root@10:( /usr/src/) $ make update -------------------------------------------------------------->>> Running /usr/local/bin/cvsup-------------------------------------------------------------- Parsing supfile "/usr/share/examples/cvsup/stable-supfile" Name lookup failure for "cvsup6.freebsd.org": Host name lookup failed Will retry at 12:36:00 ^C Wed Jul 06 12:30:41 root@10:( /usr/src/) $ dig cvsup6.freebsd.org ; <<>> DiG 9.3.1 <<>> cvsup6.freebsd.org ;; QUESTION SECTION: ;cvsup6.freebsd.org. IN A ;; ANSWER SECTION: cvsup6.freebsd.org. 3515 IN CNAME sanmateo.ecn.purdue.edu. sanmateo.ecn.purdue.edu. 86316 IN A 128.46.156.46 ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jul 6 12:30:48 2005 Wed Jul 06 12:30:48 root@10:( /usr/src/) $ dig @10.4.10.1 cvsup6.freebsd.org ; <<>> DiG 9.3.1 <<>> @10.4.10.1 cvsup6.freebsd.org ;; QUESTION SECTION: ;cvsup6.freebsd.org. IN A ;; ANSWER SECTION: cvsup6.freebsd.org. 3534 IN CNAME sanmateo.ecn.purdue.edu. sanmateo.ecn.purdue.edu. 86334 IN A 128.46.156.46 ;; SERVER: 10.4.10.1#53(10.4.10.1) ;; WHEN: Wed Jul 6 12:31:01 2005 Wed Jul 06 12:31:01 root@10:( /usr/src/) $ Gerald
On Jul 6, 2005, at 1:54 PM, Gerald wrote:> These are from the machine behind the nat/gateway. Notice without > specifying what server to query with dig, it ignores /etc/resolv.conf > and queries localhost. What am I missing? (digs are trimmed to > practical > information for brevity.) > > Wed Jul 06 12:30:23 > root@10:( /usr/src/) $ uname -a > FreeBSD 10.4.10.75 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu Jun 23 > 10:59:58 CDT 2005 root@10.4.10.75:/usr/obj/usr/src/sys/WEB- > NOIPV6 i386 > Wed Jul 06 12:30:28 > root@10:( /usr/src/) $ cat /etc/resolve.conf nameserver 10.4.10.1 > nameserver 24.153.158.62"What you are missing" is the right filename. :-) That should be /etc/resolv.conf, not /etc/resolve.conf... -- -Chuck
On Wed, 6 Jul 2005, Charles Swiger wrote:> "What you are missing" is the right filename. :-) > That should be /etc/resolv.conf, not /etc/resolve.conf...In the words of Homer Simpson: "DOH!" Thanks for the accurate and quick reply. Gerald
Gerald wrote:> Summary: 2 Freebsd -stable machines. 1 is NAT/Gateway for the other...> These are from the machine behind the nat/gateway. Notice without > specifying what server to query with dig, it ignores /etc/resolv.conf > and queries localhost. What am I missing? (digs are trimmed to practical > information for brevity.) > > Wed Jul 06 12:30:23 > root@10:( /usr/src/) $ uname -a > FreeBSD 10.4.10.75 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu Jun 23 10:59:58 > CDT 2005 root@10.4.10.75:/usr/obj/usr/src/sys/WEB-NOIPV6 i386 > Wed Jul 06 12:30:28 > root@10:( /usr/src/) $ cat /etc/resolve.conf nameserver 10.4.10.1 > nameserver 24.153.158.62... Just to be sure... your problem box has a proper /etc/resolv.conf, or has it instead a *resolve.conf* as shown in your test sequence above? Of course, a resolve.conf file would rightly be ignored. If the typo is only in your email and not really on the box, then I can only report that I see no such problems on a comparable setup (-STABLE client behind a -STABLE NAT box, both updated with src & ports circa July 2). -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) <gregb at scls.lib.wi.us>, (608) 266-6348