LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS Cache not Clearing? (https://www.linuxquestions.org/questions/linux-newbie-8/dns-cache-not-clearing-4175437697/)

jjern 11-18-2012 01:18 PM

DNS Cache not Clearing?
 
Last week I needed to update one of our zone files on the primary DNS server. I restarted dns (./named restart) on the primary and slave DNS servers. It didn't appear that the file had updated on the slave servers. Afer trying various things, I backed up the file and deleted it off all the servers (but I did not change the named.conf file). After restarting DNS on them all again-the file showed back up on all the slaves-and this was the old, un-updated file.

I've tried every command I know about nscd -i hosts, rndc flush-but don't know where to go from here.
Does anyone have clues? I'm fairly new to dns, sysadmin and networking.

We don't appear to be running Squid;we have OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
built on: Tue Mar 3 12:54:01 EST 2009
platform: linux-elf
>>>>>>
Any help would be greatly appreciated.

Thank you-

bathory 11-18-2012 04:09 PM

Hi,

Did you increase the serial number in the master's zone file after changing it? Use:
Code:

named-checkconf -z
to see the serial of the zone in question.
Also check if the slaves are listed in the NS RRs and if the master sends notifies to slaves.

Regards

jjern 11-26-2012 08:54 AM

Quote:

Originally Posted by bathory (Post 4832206)
Hi,

Did you increase the serial number in the master's zone file after changing it? Use:
Code:

named-checkconf -z
to see the serial of the zone in question.
Also check if the slaves are listed in the NS RRs and if the master sends notifies to slaves.

Regards

We had changed the serial numbers. What we found is a problem in the named.conf file. The zone file names are similar and in two entries were pointing to the wrong zone files. For example:
zone "xxx.zzzb.abcde.xxx" IN {
type master;
file "db.xxx.zzza.abcde.xxx";

If you look at the zzzb portion-the statement "file" was telling it to go look at the zzza file.

One error was on the backup DNS server, and one error was on the master DNS server.

Thank you for your help!


All times are GMT -5. The time now is 12:10 PM.