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

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



On Thursday 07 February 2002 09:16 pm, Brian Rahill wrote:
> Hi All,
>
> My current provider is moving my box from one facility to another.  In
> anticipation of this, I'd like to change the TTL on all the DNS records I
> host from the current 24 hrs. down to something like 1 hr (or perhaps
> less).
>
> Just in case they can't migrate all the IP addresses for some reason I'd
> like to be able to make the switch to new IPs quickly without dealing with
> long cache times.
>
> Is there a way for me to do this quickly for all the sites on my server?  I
> know about going into each site's SOA through the GUI and editing the TTL
> but with about 100 sites this is going to take me forever to change and
> then change back once the move is complete.

You should be able to write a simple bash or perl script to 
parse the files in /etc/named change TTL and change the serial number,
BUT, BUT you would have to quit using the GUI to administer DNS

-- 
Gerald Waugh