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

[cobalt-users] dns wildcards



I'm trying to run wildcards on my dns server but as you all know the gui doesnt allow wild cards and if I manually add them the gui deletes them when you save changes.

So I edited /etc/rc.d/init.d/named and added:  [ -f /etc/named2.conf ] || exit 0

I made /etc/named2.conf and set it up to point to the directory /etc/named2
basic example:

options { directory "/etc/named2"; };
zone "domain.com" { type master; file "db.domain.com"; };

I made /etc/named2 and added the new records db.domain.com in side the new named2 directory.

I also copies the db.cache into this directory.

So my system looked like

dir /etc
named.conf
named2.conf
named.boot
named <-- dir
named2 <-- dir
dir /etc/named
all the normal pri.domain.com files
dir /etc/named2
db.cache
db.domain.com

I added the following to db.domain.com which worked

*    in    a    203.117.93.64

I also used *.domain.com.    in    a    203.117.93.64
which also worked


Problem now is I come back today and the server no longer ran the second named configuration.

Did I miss something, or does any one else know how to do this?

Dont bother doing a dig, I added the wild card to the normal named directory (not named2) and added it to named.conf so the domain would stay up.

What im wondering is does any one know how to do this arround the gui so it doesnt screw up my changes?

Thanks for any assistance

Benjamin Charles Tehan
Sakon Singapore