From owner-freebsd-questions@FreeBSD.ORG Fri Aug 12 07:05:26 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BE2916A420 for ; Fri, 12 Aug 2005 07:05:26 +0000 (GMT) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id C76E043D58 for ; Fri, 12 Aug 2005 07:05:23 +0000 (GMT) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1E3TbW-0007cC-GC for freebsd-questions@freebsd.org; Fri, 12 Aug 2005 08:05:22 +0100 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.13.4/8.13.4/Debian-1) with SMTP id j7C75L9f030926 for ; Fri, 12 Aug 2005 08:05:22 +0100 Received: (qmail 59456 invoked by uid 1001); 12 Aug 2005 07:05:16 -0000 From: "Frank Shute" Date: Fri, 12 Aug 2005 08:05:16 +0100 To: perikillo Message-ID: <20050812070516.GA59391@peach> References: <51d7a51605081122077450e9cd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51d7a51605081122077450e9cd@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.11-RELEASE-p4 i386 X-Organisation: 'Esperance Linux' Cc: freebsd-questions@freebsd.org Subject: Re: Problems with DNS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 07:05:26 -0000 On Thu, Aug 11, 2005 at 10:07:42PM -0700, perikillo wrote: > > HI all. > > I have one freebsd box running 5.3, i get my IP from one internal > DHCP running NT 4.0, here we have one PDC on NT 4.0, to get to the > outside we pass thru one http proxy and one firewall, i have my user > and password for the proxy, i want to get outside, i install manually > the cvsup program, i download that one from another machine and burn > the file on that machine because i cannot made my freebsd box reach > internet. > > I already setup this variables: > > /root/.cshrc > setenv HTTP_PROXY http://myuser:mypass@192.168.1.2:3128 > setenv FTP_PROXY http://myuser:mypass@192.168.1.2:3128 > > /etc/make.conf > > FETCH_ENV= HTTP_PROXY=http://myuser:mypass@192.168.1.2:8080 > FETCH_ENV= FTP_PROXY=http://myuser:mypass@192.168.1.2:8080 > > i have my NIC setup on /etc/rc.conf to get the IP from my DHCP > server, and found my lease on /var/db/dhcp.lease > > There i see my info, my domain, i create my /etc/resolv.conf and > input my domain: > > nameserver MYDOMAIN <----My lease have this > > But went i run cvsup, say that it cannot resolved hostname, i > really dont know what more to do, i read the handbook, but dont find > any good info on the DHCP setup, only talk about the server but not > about how to setup the client, only say some files, dhcp.conf, etc. > > I need to setup those files...? Try passing the DNS info via dhclient.conf rather than resolv.conf. eg. in dhclient.conf: interface "ep0" { media "media 10baseT/UTP"; prepend domain-name-servers 127.0.0.1, 192.168.0.2; } Just replace the IP addresses above with those of your primary and secondary DNS. -- Frank echo "f r a n k @ e s p e r a n c e - l i n u x . c o . u k" | sed 's/ //g' --->PGP keyID: 0x10BD6F4B<---