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.

Script do change DNS of all domains

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

  1. silas_i

    silas_i Member

    Joined:
    Jan 6, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
    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