• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Debian DHCP configuration (Resolved)

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Hey guys, I want my Debian machine to talk directly to the DNS servers I specify, rather than using the DHCP config.

On Windows this is done in the TCP/IP protocol properties dialog, DNS tab. In Debian I have tried using NetManager to add the DNS servers in the order I want them queried, but this gets overwritten every time I change it. I have also tried editing resolv.conf, and it also gets overwritten (well, it's the same thing, I think, if Netman gets its info from resolv.conf).

The reason is that I have bind9 running on the Debian system for LAN lookup, forwarding out to Open DNS. All the LAN clients point to the Debian machine for DNS, with the router as backup. The router is also set to forward out to Open DNS. The idea is to offload all DNS queries from the router unless the Debian machine is down (and has the nice effect of giving me fast, stable resolution of internal LAN client addresses). This works for all clients but the Debian machine itself, which insists on using the router as DHCP instructs.

It's not a huge deal, but I just want to know how to make it work 🙂.

Thanks!

EDIT:

NM, I figured it out. In case some future seeker looks here...

$nano /etc/dhcp3/dhclient.conf

Add the following line after the requests...

supersedes domain-name-servers 127.0.0.1; # <- replace with correct IP

That will always overwrite what the DHCP server sends. If you want to use your DNS specs as primary, and fall back to the DHCP settings, use...

prepend domain-name-servers 127.0.0.1; # <- replace with correct IP

Then $/etc/init.d/networking restart

And you're all set.

 
Back
Top