LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2009, 06:03 AM   #1
pixel_surgeon
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?

Thanks!
 
Old 04-04-2009, 06:07 AM   #2
pixel_surgeon
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
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
Code:
dig @a.root-servers.net . ns > root.hints
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:43 AM.

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