From owner-freebsd-questions Fri Oct 1 8: 7: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cask.force9.net (cask.force9.net [195.166.128.29]) by hub.freebsd.org (Postfix) with SMTP id EC77D15A32 for ; Fri, 1 Oct 1999 08:06:45 -0700 (PDT) (envelope-from richard@sinclairassoc.force9.co.uk) Received: (qmail 1397 invoked from network); 1 Oct 1999 15:06:39 -0000 Received: from unknown (HELO sparky) (212.56.114.124) by cask.force9.net with SMTP; 1 Oct 1999 15:06:39 -0000 From: "Richard Morte" To: Subject: DNS Slave seeks DNS Master - please be gentle Date: Fri, 1 Oct 1999 16:06:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Can anyone help me untangle the DNS/PPP mess I'm in? I have a local DNS configured and it appears to work OK. I can resolve addresses to names and names to addresses - but only for hosts on the local network (192.168.120). Anything in the outside world times out. SAMBA also works OK and I can share files across the Win network. I have user-ppp configured. It used to dial out (often, if anything, without obvious provocation) in -auto -alias mode, but now it seems resolutely to want to remain quiet. I can force a dial out in 'interactive' mode OK; it's just the auto mode that doesn't want to play ball. I have the dawning conviction that the unprompted dial outs were due to DNS updating from the root servers. Ditto when Netscape starts up, tho' what it is looking up, I never found out. Now in my hacking at DNS/PPP I seem to have unlinked what was formerly linked -permanently. I suspect the problem is the default gateway. (Single FreeBSD box connected to multiple Win machines). I noticed during the boot up sequence the following msgs: Doing initial network setup: hostname pn0: flags=8843 => ifconfig: ioctl (SIOCAIFADDR): Destination address required tun0: flags=80105 mtu 1500 ...etc => add net default: gateway sparky.at.home ...etc The first highlighted entry is clearly up the creek (I have no idea how it got in there); the gateway entry is probably OK. A tcpdump reveals the following: # tcpdump Oct 1 15:30:06 sparky /kernel: pn0: promiscuous mode enabled tcpdump: listening on pn0 15:18:00.011052 sparky.at.home.iad3 > 192.36.148.17.domain: 9618 (42) 15:18:00.011505 sparky.at.home.iad3 > 192.5.5.241.domain: 9621 (43) 15:18:00.245881 sparky.at.home.iad3 > 202.12.27.33.domain: 9622 (44) 15:18:01.011087 sparky.at.home.iad3 > 128.8.10.90.domain: 9619 (42) 15:18:01.011545 sparky.at.home.iad3 > 192.112.36.4.domain: 9616 (43) 15:18:03.011092 sparky.at.home.iad3 > 202.12.27.33.domain: 9617 (43) 15:18:03.011545 sparky.at.home.iad3 > 193.0.14.129.domain: 9610 NS? . (17) ^C # So I guess that DNS *IS* doing it's stuff and trying to update the cache after a reboot, only that the packets get to the Ethernet interface pn0, but never to tun0. This helps explain why nslookup times out for www domains. But I haven't a clue as to what's causing it. Here's the output of netstat -rn after a reboot: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.120.1 UGSc 13 0 pn0 10.0.0.2 10.0.0.1 UH 0 0 tun0 127.0.0.1 127.0.0.1 UH 0 24 lo0 192.168.120 link#1 UC 0 0 pn0 192.168.120.1 0:a0:cc:54:1d:7 UHLW 14 0 lo0 As they say in Yorkshire, "Summat's up". Can anyone tell me what's broken? Many thanks ric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message