Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    7

    Default Script do change DNS of all domains

    Hi,

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

    How to do it this ?

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default Re: Script do change DNS of all domains

    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'
    replace '14400' '304' -- /var/named/*.db
    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'
    sed -i 's:2011[0-9]\{6\}:2011081305:g' /var/named/*.db
    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.

Similar Threads & Tags
Similar threads

  1. postsuspendacct -> change dns ? simple script
    By altomarketing2 in forum cPanel Developers
    Replies: 8
    Last Post: 11-02-2011, 06:33 AM
  2. Change DNS zone IP for all domains
    By ManXP in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-21-2010, 02:54 AM
  3. DNS Clustering (DNS Only) + Parked Domains
    By Francisco in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-18-2006, 01:09 PM
  4. Change ownership of account (DNS change)
    By dxer in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-13-2006, 06:45 AM
  5. How do I change server ips and change dns zone refresh intervals
    By deu12000 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 09:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube