Configuring a test domain (Internal domain)
Shyam Shantikumar
skshyam at hotmail.com
Tue Apr 26 21:00:50 PDT 2005
Dear all,
I am a novice when it comes to setting up a dns domain in FreeBSD. I am
trying to set up this domain called "simple" only for 2 machines in my
internal network.
This is my db.domain file
$TTL 3h
simple. in SOA
LDAPSERVER.simple. (
1
3h
1h
1w
ih )
simple. in NS
LDAPSERVER.simple.
localhost.simple. in A 10.1.3.197
shyam.simple in A 10.1.3.195
This is the db.address file for reverse resolution.
$TTL 3h
simple. in SOA
LDAPSERVER.simple. (
1
3h
1h
1w
ih )
simple. in NS
LDAPSERVER.simple.
localhost.simple. in A 10.1.3.197
shyam.simple in A 10.1.3.195
This is the named.conf file
key "rndc-key" {
algorithm "hmac-md5";
secret "ho7if1SMtvTZ4vSj2dY2Alt3HHKIvX6yT2CA1nY4Yn0=";
};
controls {
inet 127.0.0.1 port 953 allow {localhost;} keys {rndc-key;};
};
options {
directory "/etc/namedb";
pid file "var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
forwarders {
10.1.3.1;
};
zone "." {
type hint;
file "db.cache";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "db.127.0.0";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.arpa"$
type master;
file "master/localhost-v6.rev";
};
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.int"$
type master;
file "master/localhost-v6.rev";
};
zone "simple" in {
type master;
file db.simple";
};
zone "3.1.10.in-addr.arpa" {
type master;
file "db.10.1.3";
};
Please bear with me if I have made any stupid mistakes on the configuration.
Thanx
More information about the freebsd-net
mailing list