[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Change TTL for all domains.



Theory only:

# cd /var/named
# grep TTL * | head

look at the existing TTLs.  If they're common (86400 in this example) then
it's easy:

Make sure that you're not going to change any instance of "86400" that you
don't want changed. perhaps by doing this:

# grep 86400 * | grep -v TTL

this will pull any instance of 86400 from all files, and ignore any line
which says TTL.  YMMV, so look for sane unique strings.

# perl -pi -e 's/86400/3600/g' *
(3600 is one hour)

This is very much under assumption of a unique value that you wish to
search-and-replace.
Note that I have done this thousands of times, but not ever once on a
cobalt, as I personally would only use them as webservers, and not as
kitchen-sink appliances (all of my name servers are on seperate boxen, as
are my mail servers).

HTH,
Chris