Ok guys - I will be really happy for any suggestions on helping me with the following task I have at work.
Task = Clean up dns1 and dns2 entries
The task sounds simple, no? All I have to do is clean up the fwd and rev. entires for our internal DNS. This basically involves removing hostnames bound to specific IP's that are no longer on the LAN and or the reverse of that.
Here is the problem.
We have 2 DNS servers. One is a master (net1) and the other is a slave (net2) & I think they both synchronize like every 4-5 hours or something like that.
Now this causes great annoyance as there are so many invalid entries in DNS and if I want to remove them or correct them, I have to run the following command to edit them on net1 since it is the primary:
Code:
[root@net1 named]# service named stop && vim something.org.hosts && service named start
Stopping named: [ OK ]
Starting named: [ OK ]
[root@net1 named]# service named stop && vim 1.1.10.in-addr.arpa.hosts && service named start
Stopping named: [ OK ]
Starting named: [ OK ]
As you can see I have edited the forward and reverse on the main DNS server but lets say you edit or delete close to 100 entires, do I know have to do the same thing to the slave (net2) server before it runs a sync? I did all the clean up on the primary dns server (net1) so I would assume that the slave should mirror the primary and not the other wat around but I did not set this thing up so I am not sure nor do I have any experience with DNS on Linux.
The above means I am editing 4 different files and some entries are only in 1 of 4 and then if so, what gets replicated? I am so confused.
The servers are running FC3 which I am trying to move off of to a RHEL4 but I would like to clean this up before I move them off the FC3 boxes.
Thanks for any info and I have no idea how the synchronization occurs or how to check so please feel free to add any info to help me.
Thanks!