Re: How to force Debian/KDE to use particular DNS server?
Also sprach "Striplin, Phil" <phil.striplin@kpmg.co.uk> (Thu, 28 Apr
2005 11:43:29 +0100):
> [...]
> I want the machine to use the two DNS servers supplied by my ISP.
> These are set in my resolv.conf file. There are no other entries in
> that file. I have no particular need for DNS within the local
> network.
if you use dhcp the values for dns likely come from your dhcp server
(likely your router). they may be added to your /etc/resolv.conf. there
also are some tools like "resolvconf","ifscheme",.. which do that.
$ apt-cache show resolvconf
> I am connected to the internet via an router, which is set to "auto
> discover" DNS servers - necessary, because the server also has to
> handle internet and VPN access to a corporate network.
the router get it's dns server from your isp and the tells your dhcp
client.
you can specify those dns servers (the two from your isp) by hand. they
usually change seldom. this might be the easiest solution.
> For some reason, this router tells the Linux box that the DNS servers
> are its own local address (192.168.8.1) and the first of the two "ISP"
> servers. This means that DNS lookups always try the router, then the
> "real" DNS" server. This causes delays.
i assume 192.168.8.1 is your router. so i think there's a dns forwarder
in your router. often there's just linux inside - what brand/model is
it?
> I need to be able to tell the Linux box to disregard what it is being
> told by the router and use the DNS servers explicitly listed in
> resolv.conf.
use static ip addresses in your network (/etc/network/interfaces) and
don't use the above mentioned tools. switch off the dhcp server in your
router.
or
confiure your dhcp client to not use the dnsservers your dhcp server
serves you. (don't ask me how this can be done - man is your friend :))
> If I open up the Networking applet in KDE, it tells me that the box is
> using an "unknown" profile, which has DNS details as shown above. I
> can save the "correct" DNS details as another profile, but I haven't
> found a way to force this profile to be loaded on startup of KDE.
i don't use KDE, but it might have to do with some network related
packet you have installed. some of them are able to manage "profiles"
for known network layouts. maybe KDE brings in it's own too.
$ apt-cache search network laptop
> Phil
sl ritch.
Reply to: