Date: Tue, 16 Aug 2005 10:58:15 -0500 From: "Micheal Patterson" <micheal@tsgincorporated.com> To: "Ronny Machado C." <ronny.machado@cajalosandes.cl>, <freebsd-questions@freebsd.org> Subject: Re: resolv.conf Message-ID: <09fa01c5a27b$5360b110$4df24243@tsgincorporated.com> References: <CAB4E4DE7BBD8A4CB54A54F27EFABF3F01FC8D5A@YANTELES.ccaf.andes>
next in thread | previous in thread | raw e-mail | index | archive | help
. ----- Original Message ----- From: "Ronny Machado C." <ronny.machado@cajalosandes.cl> To: <freebsd-questions@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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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; } -- Micheal Patterson Senior Communications Systems Engineer 405-917-0600 Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09fa01c5a27b$5360b110$4df24243>