From owner-freebsd-questions Mon Jul 30 10:32: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 1584237B403 for ; Mon, 30 Jul 2001 10:32:04 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.2/8.11.0) with ESMTP id f6UHW3K12511 for ; Mon, 30 Jul 2001 19:32:03 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id TAA11579 for ; Mon, 30 Jul 2001 19:32:02 +0200 (CEST) Received: (qmail 70543 invoked by uid 1001); 30 Jul 2001 17:31:06 -0000 Date: Mon, 30 Jul 2001 19:31:05 +0200 From: Erik Trulsson To: Wouter Cuypers Cc: freebsd-questions@FreeBSD.ORG Subject: Re: wrong DNS numbers from DHCP server Message-ID: <20010730193105.A69807@student.uu.se> Mail-Followup-To: Wouter Cuypers , freebsd-questions@FreeBSD.ORG References: <20010730171515.BCEB79BB57@pop3.telenet-ops.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010730171515.BCEB79BB57@pop3.telenet-ops.be> User-Agent: Mutt/1.3.20i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jul 30, 2001 at 07:13:20PM +0200, Wouter Cuypers wrote: > Hello, > > I use FreeBSD for natd and ipfw on a 200Mhz pentium system with 2 NIC's. > My cable providers assigns the machine's outside IP using DHCP but it > also gives me the wrong DNS addresses. > I know that they are 195.130.132.17 en 195.130.132.18. But when I look > at my resolve.conf it looks like this: > > search pandora.be > nameserver 195.130.132.20 > nameserver 195.130.132.18 > > With these settings my sshd cannot reverse my internal IP's and doesn't > allow me to connect using SSH. Telnetd still works. > When I manually change resolve.conf and change the 20 to 17, then SSH > works just fine. > > Is this a problem that I should solve with my ISP or can i get a > work-around ? Yes, and yes. You probably should talk to your ISP and make sure that DHCP supply the correct settings. There is a workaround though. > Changing the permissions of the file didn't seem to work. > Is there a way to disable the DNS resolving in dhclient ? You can get dhclient to override the settings that it gets from the server. Look at the dhclient.conf(5) man page, especially the 'supersedes' option. > I can't just disable dhclient, i'm on a dynamic IP (cycle = about 3-4 > weeks). -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message