Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-04-2009, 06:03 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
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?

Old 04-04-2009, 06:07 AM   #2
LQ Newbie
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I was wrong

Okay, I thought it was working. Seems that there is obviously something else wrong.
Does anyone know where else I could have gone wrong?

Thanks again!
Old 04-04-2009, 09:05 AM   #3
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,196

Rep: Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676
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
dig . ns > root.hints


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange results when I do a df mlh Linux - General 11 05-31-2007 10:49 AM
APT-GET Results = Strange carlosinfl Debian 2 06-17-2006 02:45 AM
bind caching dns question FunkyRes Linux - Software 4 05-04-2005 01:33 PM
Strange results from dmesg JimBass Linux - Newbie 11 03-27-2005 06:15 PM
Local caching only DNS takes a long time to resolve essdeeay Linux - Networking 4 08-20-2004 11:41 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration