HEAD: $TTL question

Jim Reid jim at rfc1035.com
Fri Oct 13 10:59:43 UTC 2000


>>>>> "Johnny" == Johnny Damtoft <JOD at sonofon.dk> writes:

    Johnny> I've just taken over a DNS with over 700 domains. But my
    Johnny> problem is now that the $TTL that should be in the top of
    Johnny> every domain, dosent exist :(

It's more likely you've taken over a name server than a "Domain Name
System".

    Johnny> Is there a option that i can put in named.conf, that does
    Johnny> the $TTL work in there is no $TTL in the zone-file ???

No. It only takes a trivial shell script to add this to the zone files:

	foreach i ( list-of-broken-zone-files )
		co -l $i
		ed $i << EOF
		0i
		$TTL 1234567890
		.
		w
		q
		EOF
		echo 'added missing $TTL directive' | ci -u $i
	end



More information about the bind-users mailing list