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

Re: [cobalt-developers] DNS setup trick, legitimate ??



try:
(commandline, ssh or similar)

dig <domainname.com> SOA

prints eg. for "dig kapper.net SOA"
;; ANSWER SECTION:
kapper.net.             1H IN SOA       ns1.kapper.net.
dns.kapper.net. (
                                        2001071421      ; serial
                                        8H              ; refresh
                                        2H              ; retry
                                        3W              ; expiry
                                        1D )            ; minimum

(and some more things)
but this should get you on.

as you don't like to screw - I guess there's no
global-replace-timeconfig in SOA for all domains... sorry.

but if you're willing to do it, try:

[first backup - just in case]
cp /etc/named/records /etc/named/records.bkup
(this records file is where the gui stores all dns-settings in its own
format)

[then, depending on the number of domains]
do a:
grep -i soa /etc/named/records

this prints out a list of entries containing soa-data for your dns.
the special line that should always be displayed is:
soa - - ....
while all other lines look like:
soa - domain.com ....
the special line is the default-setting for new domains you create.

then in all soa-lines you see the timeout-data displayed in seconds,
so you should be able to easily figure out where your trouble-record
is (if). then you're on your own (because I don't tend to write some
sed-things here) and open /etc/named/records using vi or pico or
similar and edit the lines you don't like - or simply stop before
editing the file and go back to your webinterface and change the
domains' SOA-records you'd like to be changed.

hth
hk

On Thu, 02 May 2002 20:54:09 -0400, you wrote:

>Okay, for someone who really doesn't like to screw with his RAQ server - 
>what would be the easiest way to see if one's site SOA records has some bad 
>entries, like time to live set at one minute?  Any way to set all SOA's to 
>the same value in one swoop?
>
>Thanks, as always :)
>
>Jale
>
>_______________________________________________
>cobalt-developers mailing list
>cobalt-developers@xxxxxxxxxxxxxxx
>http://list.cobalt.com/mailman/listinfo/cobalt-developers