Subject: Re: No nameservers configured when using DHCP/dhclient
To: None <email@example.com>
From: Lee W <firstname.lastname@example.org>
Date: 05/18/2003 08:51:12
>>Firstly, when using DHCP every setting is configured apart from the
>>nameservers (IPv4 address, gateway, netmask & network address). To the
>>best of my knowledge I ran though the DHCP-HowTo correctly, I have tried
>>also with an empty dhclient.conf file, no dhclient.conf file at all, a
>>blank resolv.conf/no resolv.conf. Nothing I try seems to solve the
>>problem. I was unable to retrieve any hints from the appropriate man
>>pages that provided any info.
> I had a similar problem when installing 1.6.1. The dhcp configuration during installation does not set the nameserver, and this has to be set manually.
> It can be set during installation, or later in resolv.conf.
> My resolv.conf (an ADSL line):
> nameserver 10.0.0.1
I have set it manually which as you say works fine. Unfortunately my
ISP seems to switch around 5 different DNS servers which means some are
not always available (down for maintenance I guess). This is why I need
DHCP on them.
>>Secondly, how can I run dhclient again without having to reboot. The
>>first time I ran the script is went though fine however on subsequent
>>attempts I got some message about "before reporting a bug, check the
>>mailing lists and README files" (something like that).
> /etc/rc.d/dhclient restart
Thanks for that, it makes config changes a bit quicker.
> hope this helps