The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"Synchronize DNS Records with Primary Nameserver" every day?

Discussion in 'Bind / DNS / Nameserver Issues' started by wmostrey, Dec 29, 2003.

  1. wmostrey

    wmostrey Member

    Joined:
    Dec 11, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    How can I make the option "Synchronize DNS Records with Primary Nameserver" run every day, or each X hours?
     
  2. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Set up a cron job for root.

    0 */2 * * * /scripts/dnstransfer

    This will make it update every 2 hours.
     
  3. wmostrey

    wmostrey Member

    Joined:
    Dec 11, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    when I run the script, I get the following error:

    ./dnstransfer
    Rebuilding DNS Zones List from master server .....
    stdin: is not a tty
    named.conf 100% |**********************************************************************************************************| 159 KB 00:00
    ndc: connect failed: connection refused
    Rebuild Complete

    Are the files synced or not?
     
  4. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Make sure you have run /scripts/fixndc 2-3 times. Then also you have to establish a trust relationship with the primary through WHM.
     
  5. wmostrey

    wmostrey Member

    Joined:
    Dec 11, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    the trust relation is set, and sync works trough the WHM. does the error mean it is not synced?
     
  6. scapeweb

    scapeweb Well-Known Member

    Joined:
    Aug 16, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Do I still have to set up a cron for cpanel 8. Or will the nameserver syc by themselves.
     
  7. wmostrey

    wmostrey Member

    Joined:
    Dec 11, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    you need to set up the sync yourself. i myself did not succeed in this. i set up an rsync and cron.hourly between the two servers, which syncs the named dir and named.conf each hour.
     
Loading...

Share This Page