[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setting up a static IP address



On Tue, Aug 16, 2011 at 11:31 AM, Steve Kleene <skdeb@syrano.acb.uc.edu> wrote:
> On Tue, 16 Aug 2011 03:32:42 -0500, Selim T. Erdogan wrote:
>
>> (I also have dns-nameservers lines in my eth0 stanza in /e/n/i.
>> IIRC, when I didn't, using dynamic wireless connections kept clobbering
>> the static DNS entries in /etc/resolv.conf.)
>
> That's interesting, because on one my machines resolv.conf gets nulled out
> during the boot process.  I hacked around that by putting it back via
> /etc/rc.local.  I'll try the better solution you suggest.

Rather than re-writing "/etc/resolv.conf" through "/etc/rc.local" or
set it to "immutable", you can edit "/etc/dhcp/dhclient.conf" not to
request DNS server settings from the DHCP server with a "supercede"
statement.


Reply to: