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!

Script do change DNS of all domains

Discussion in 'Bind/DNS/Nameserver' started by silas_i, Jan 12, 2012.

  1. silas_i

    silas_i Member

    Joined:
    Jan 6, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    I need change all my XM Entries to yourdomain.com. acctually are hostname.domain.com.

    How to do it this ?
     
  2. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    168
    These aren't scripts per se, but are commands you can use for just this type of thing...

    This command will parse through ALL the domain files and replace the text '14400' with '304'
    This command will parse through ALL domain files looking for a certain date string (anything with 2011 like 2011010101) and replace it with the given string '2011081305'
    Perhaps that will get you headed in a direction that's helpful. However, if you modify a file and don't update the serial of the DNS record, you'll be out of sync with other nameservers and that can cause issues.
     
Loading...

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