Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've set up a caching nameserver on my SuSE 10.1 box using BIND 9.3.2. Yast has an option where the PPP daemon can automatically update the forwarders for named. I'd like to know how this is done behind the scenes in the config files and how one goes about setting this manually, i.e. without the use of Yast. Also, is there any way to check which forwarders a running named process is using so that I can test it?
The DNS forwarders are usually set in /etc/named.conf in the options section. I'm not sure whether yast does something different but you can manually configure forwarders with something like this
Thanks for the reply. I'm aware of the forwarders line in named.conf but I need the forwarders to change depending on what isp I'm using - I use a dial-up and gprs and both are through different isps. I could write a script to do it for me, but before I go that route I wondered if there was a simpler solution because of the "Let the PPP daemon set the forwarders" option in Yast. But I'm unable to discern what exactly this option does in terms of configuration files.
I did find some info on the net regarding a "named.boot" that had a forwarders line in it. I already wrote a script that sets the forwarders in that file automatically based on the nameserver entries in /etc/ppp/resolv.conf when I connect, but I'm under the impression that BIND 9 no longer uses named.boot. It's a pity that there isn't something like postfix's postconf which allows you to easily change entries in postfix's configuration through a script.
I'd expect the "Let the PPP daemon set the forwarders" option in Yast does something with sed -i to named.conf. You're correct in that named.boot was used by older versions of BIND.
When I used dial up access I used a script that modified my DNS set up as part of the connection process - it worked fine, there just needs to be a corresponding script that restores the settings on disconnect.
I guess the bottom line is that I'll have to write a script to do it for me. Although, this morning I found that my isp's nameserver couldn't resolve an address that I was trying to connect to. I thought the problem was with my set-up but even when I did a "dig @<isp's nameserver>" it couldn't resolve it. When I disabled the forwarders and let my caching nameserver resolve it I had no problem. So I'm tempted to disable forwarders, although I haven't run it long enough yet to compare the pros and cons of it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.