Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2005 08:05:16 +0100
From:      "Frank Shute" <frank@esperance-linux.co.uk>
To:        perikillo <perikillo@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problems with DNS
Message-ID:  <20050812070516.GA59391@peach>
In-Reply-To: <51d7a51605081122077450e9cd@mail.gmail.com>
References:  <51d7a51605081122077450e9cd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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<---                          



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050812070516.GA59391>