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.

Global SOA Change?

Discussion in 'General Discussion' started by portlandgeek, Jul 4, 2009.

  1. portlandgeek

    portlandgeek Registered

    Jun 17, 2009
    Likes Received:
    Trophy Points:

    A couple months back, I introduced another machine into the loop, and have added 40some domains since then, and earlier this week realized the SOA/email record for each zone had been set to an address different than the one I'm using on the other servers.

    To maintain uniformity, I've adjusted the zone templates in WHM for future domains and verified the correct system mail settings, but prior to putting on a gigantic performance from the command line, I started looking for something in /scripts that might allow me to globally adjust these existing zones, but haven't had any luck just yet. Might someone here be able to help out? Should changing the system mail prefs have changed the existing zones, or not?

    The very best,

    SoHo Website Hosting & Design for Oregonians - West & East Coast Datacenter Solutions!
    #1 portlandgeek, Jul 4, 2009
    Last edited: Jul 4, 2009
  2. Spiral

    Spiral BANNED

    Jun 24, 2005
    Likes Received:
    Trophy Points:
    You can update all your DNS zones at once using a simple
    replace command executed from the shell as root:

    # cd /var/named
    # [b]replace '' '' -- *.db[/b]
    # service named restart
    In the above example illustration, you would just replace
    with your old SOA contact email address and
    with your new SOA contact address

    (NOTE: Email addresses in zone files are stored with a period (.) replacing
    the normal AT (@) symbol you normally see in email addresses so the
    email address '' would actually be ''

Share This Page