Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Updating MX records for all domains in "localdomains" file.

Discussion in 'cPanel Developers' started by 4u123, Nov 6, 2013.

  1. 4u123

    4u123 Well-Known Member

    Jan 2, 2006
    Likes Received:
    Trophy Points:
    Hi, I need to do the following...

    1. Update the MX record in the DNS zone file for all domains contained in the /etc/localdomains file. The new destination hostname being the domain itself. This can be a simple replace of the existing hostname, as this will currently be only one of four specific destinations.
    2. Update the zone file serial no.
    3. Sync the DNS zone with the cluster.

    Can anyone recommend a good developer who is familiar with cpanel who would be able to do this for me at a reasonable cost?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    You can find a list of development services on our application catalog:

    cPanel - Application Catalog

    Note that the last two steps are pretty straightforward. This post explains how to increment the serials for all zones:

    Increment serial for all zones

    The following command will sync all zones to the cluster:

    /usr/local/cpanel/scripts/dnscluster syncall --full
    The first step could be achieved with the "replace" utility if necessary.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice