[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] changing dns without GUI
- Subject: Re: [cobalt-users] changing dns without GUI
- From: Brian Rahill <cobalt@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri Jan 16 07:14:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
At 09:35 AM 1/16/2004, you wrote:
is there a not ridiculously complex way to make dns changes with the
slow-hog method via the GUI.
1) Change all TTL's to 3600 while I migrate my sites from one box to another.
2) Modify the MX record from www.domain.com to mail.domain.com
3) Add a new A Record to each site for mail.domain.com
4) Modify the A Records for each site to point to the new server
Well I'm not sure on a 3i but on a 4r there is a records file that contain
all the DNS stuff for the GUI.
/etc/named/records
You can use commandline perl on this file to make all the changes you want
(make a backup first just in case).
perl -pi -e 's/searchfor/replacewith/g' filename.htm
For instance if you want to change the TTL from 86400 to 3600 you would do
something like this:
perl -pi -e 's/86400/3600/g' records
Then go into the GUI under the DNS settings and hit "Save Changes"
Same for all the other changes.
That should do it.
Brian