repolication between primary DNS and secondary DNS issue
hi,
i configured bind on rhel6 running fine, later configured secondary dns on another system on rhel6, after i resarting named on secondary dns , zone files were transferred automatically and it was great. but when ever i add new entry on primary dns , they are not getting replicated until i do it manually on secondary dns as below rndc reload mydomain.com or else i simply i delete forward and reverse zone file in /var/named/slaves/ and restart named service then both zone files will be reloaded with updated records, I changed ; refresh option to 1 Min, on slave dns, so that it checks for update for every one min. Do i need to increase ; serial count every time i edit zone files, or it will be increased automatically ??? i also manally increase ; serial after editing zone files but not being updated automatically... please help me. |
Quote:
Quote:
Maybe posting named.conf could help also. Regards |
hi bathory,
how r u doing? hope you remeber, its me, subbarao ganeshna, i had jermy change my username recently. I have personal reason.... any ways nice to see your reply thanks for that. i dont go to office for next two days so i cant send you named.conf. I think there was no error, cheked with named-check i'll send you any way. thanks for first answer. i'll increas it every time from now. comming to second line, Quote:
when i was googling i came across one thing that , if we set rndc and edit some thing in /etc/rndc.conf... we dont have to restart named every time master dns gets updated what's it ? thank you. |
Hi.
Quote:
Quote:
Anyway, the procedure when editing a zone file in master is the following: Do your edits in the zone file Increase the serial Restart bind (or just reload the zone using rndc) Quote:
Code:
rndc reload zone Regards |
hi bathory,
thanks for clarifying me Quote:
in zone file, i added NS record for slave in master dns server. which i didnt in my office, only added A record for slave. I just one want to let you know that when i thry rndc reload zone command is failing on master zone, if i userndc reolad it says commnad successful reloaded jones, but dns is not resolving for newly added record. It works only after restarting named serice. Any ways thank you. Im sorry i didnt get you. Quote:
Quote:
Quote:
MASTERS Quote:
Forward zone SLAVES Quote:
One thing that is i didnt find any notify yes entry in /etc/named.rfc1912.zones file. it working fine without it any ways please check my config files and suggest me what else i should to make sure primary records get replicated to slave dns. thank you very much for your time bathory... ---------- Post added 05-26-12 at 10:31 AM ---------- hi bathory, thanks for clarifying me Quote:
in zone file, i added NS record for slave in master dns server. which i didnt in my office, only added A record for slave. I just one want to let you know that when i thry rndc reload zone command is failing on master zone, if i userndc reolad it says commnad successful reloaded jones, but dns is not resolving for newly added record. It works only after restarting named serice. Any ways thank you. Im sorry i didnt get you. Quote:
Quote:
Quote:
MASTERS Quote:
Forward zone SLAVES Quote:
One thing that is i didnt find any notify yes entry in /etc/named.rfc1912.zones file. it working fine without it any ways please check my config files and suggest me what else i should to make sure primary records get replicated to slave dns. thank you very much for your time bathory... |
Hi,
Quote:
Quote:
Code:
rndc reload example.com Quote:
Quote:
Regards |
hi,
thanks for your help. now im clear that 1. NS record is must for slave dns on master dns to know master that there is anohter dns server and i should send notification... 2. "notify yes;" is default even it's not mentioned in /etc/named.rfc1912.zones. isnt it ? is it neccesary to add "notify yes;" Quote:
i'll change refresh interval to One day... Thank you very much . |
Quote:
It doesn't hurt if you add "notify yes", for testing TTL 1M is OK, when you're sure it's working, again change serial number and increase to 1D, and maybe you could add "allow-transfer" to the zone Quote:
Code:
zone "toddgarrison.org" IN { What catched my eye is your allow-update line which I don't use and I'm afraid if you're using it on your Master DNS server it might be a problem. I would remove it ! |
hi lithos,
so you say zone file configuration for Master & Slaves should look like this ??? MASTER DNS Quote:
SLAVE DNS Quote:
though i mentioned allow update in MASTER DNS server, my dns servers are working fine. one thing is if i added allow-update (masternds IP); in slave dns file, and use named-checkconf command get error. Quote:
thank you. |
Hi Gil@LQ,
Yes, your zones are correct, just delete the line "allow-update" and you're ok. Here are my configurations: Master zone: Code:
zone "example.com" in { Code:
zone "example.com" in { db.example.com Code:
; Start of Authority (SOA) records. |
Thanks you lithos for your time and clarifying me.
thank you very much. |
All times are GMT -5. The time now is 10:07 PM. |