atom feed6 messages in org.freebsd.freebsd-questionsresolv.conf
FromSent OnAttachments
Ronny Machado C.Aug 16, 2005 1:53 pm 
Lowell GilbertAug 16, 2005 2:01 pm 
Ronny Machado C.Aug 16, 2005 2:05 pm 
Jon MercerAug 16, 2005 3:01 pm 
Micheal PattersonAug 16, 2005 3:53 pm 
Ted MittelstaedtAug 17, 2005 5:34 am 
Subject:resolv.conf
From:Micheal Patterson (mich@tsgincorporated.com)
Date:Aug 16, 2005 3:53:19 pm
List:org.freebsd.freebsd-questions

----- Original Message ----- From: "Ronny Machado C." <ronn@cajalosandes.cl> To: <free@freebsd.org> Sent: Tuesday, August 16, 2005 8:54 AM Subject: resolv.conf

Hi list,

I'm new to FreeBSD, and this is the first time I configure a FreeBSD box. Ok, let's get to the point: my problem is with DNS resolution, form some reason the resolv.conf changes after some time (10 to 20 minutes), from my DNS IP to the rl0 IP. Does any one know why? My machine is an AMD64/FreeBSD 5.3 with PPPoE for an ADSL connection,

greetings from .CL,

pElA'0

_______________________________________________ free@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "free@freebsd.org"

As you may have seen already, this is a common issue with systems running dhclient. It will overwrite the resolv.conf with the ISP provided dns information as soon as it obtains it from the dhcp server. To counter this, do this with your dhclient.conf file (/etc/dhclient.conf) and create a prepend entry for each server you want to answer your dns requests. Take note, the file is read from top to bottom and in the example below, 127.0.0.1 would be the primary dns server for your system.

interface "rl0" { prepend domain-name-servers enteryourdnsiphere prepend domain-name-servers enteryourdnsiphere prepend domain-name-servers 127.0.0.1; }