Problems with DNS
Frank Shute
frank at esperance-linux.co.uk
Fri Aug 12 07:05:26 GMT 2005
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<---
More information about the freebsd-questions
mailing list