[Wylug-help] DNS problems on a PC

Mike Goodman mike.goodman at zen.co.uk
Thu May 15 10:05:35 BST 2008


Chris Davies wrote:
> Mike Goodman wrote:
>> No joy, I'm afraid. The new settings were cleared in the reboot. How do
>> I glue them in?
> 
> I'm running Debian rather than Ubuntu, but this is how I've done it.
> 
> The DHCP address is obtained by dhclient3. Digging around you'll find
> that its configuration file is /etc/dhcp3/dhclient.conf.
> 
> If you ensure the following lines are in that file it should get close
> to what you want. I've got a very similar file here on my laptop (the
> basic difference is the domain-name and domain-name-servers lines - I
> only have one domain-name-servers entry, and the domain-name stuff I now
> actually do in a network script inside /etc/network/if-up.d/local.)
> 
> 
> ####################################
> # Resources wanted from the DHCP server
> #
> request subnet-mask, broadcast-address, routers,
>         domain-name, domain-name-servers, domain-search, host-name,
>         netbios-name-servers,
>         time-offset, ntp-servers,
>         wpad;
> 
> ####################################
> # Resources needed from the DHCP server
> #
> require subnet-mask, domain-name-servers;
This line was commented out, so uncommented it

> 
> ####################################
> # Post-processing of the result
> #
> append domain-name " MY.LOCAL.NETWORK.DOMAIN.co.uk ";
> supersede domain-name-servers 208.67.222.222, 208.67.220.220;
> 
Appended these two lines at the end substituting appropriately.

> 
> Good luck,
> Chris

The only extra line in resolv.conf is search bill.local.sys which is the
name of this machine.



More information about the Wylug-help mailing list