Strange results with local BIND caching name-server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Strange results with local BIND caching name-server
Here's a strange one!
I set-up a simple home nameserver on a Fedora 9 machine. BIND has two forwarders set-up so it can passed requests out. It works really well now, but I noted a strange behavior.
When using the DNS I set-up I couldn't keep a log-in on some of the forums. I could log-in using my username and password but I would get logged out automatically a page or two later (this included LinuxQuestions). This didn't happen if I used the external name servers directly and bypassed my home system.
I installed BIND as an experiment in order to learn how to use it, but this was becoming frustrating.
I eventually fixed the problem. In my named.conf I had set the "forward first" directive within the "OPTIONS" statement. So esentially, my caching name server was a bit pointless. I commented this line out and now everything seems to work fine.
My question is why. Does anyone know why I was getting this behavior when my local server was set to forward first?
You don't need to setup forwarders for a caching name server. All you have to do is to use the hint "." zone and use a fresh copy of the root.hints zone file. Read this for more details.
To get a fresh root.hints file, run
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.