bind9 on debian
Gruff
a at a.com
Mon May 3 09:17:02 UTC 2004
Hi
Im currently tryign to setup BIND9 on my debian box. I install BIND9 via
"apt-get install bind9". Named starts fine, but I do not get a responce
when I query the server, so im assuming I must have my configuration files
wrong. hopefully someone will spot my mistakes? as you can see, I have added
test.com which im using as a test.
heres what i have in /etc/bind/named.conf
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// add entries for other zones below here
zone "test.com" {
type master;
file "/etc/bind/test-com.zone";
};
OK, now I have created /etc/bind/test-com.zone, which contains the
following:
;
; zone file for test.com
;
$TTL 3D
@ IN SOA ns0.test.com. admin.test.com. {
200405022 ; serial
3600 ; refresh
3600 ; retry
3600 ; expire
3D } ; TTL
;
NS ns0 ; nameserver or IP
;
test.com. MX 10 mx0 ; primary MX record
;
www A 192.168.0.20
ns0 A 192.168.0.10
mx0 A 192.168.0.10
gw A 192.168.0.1
And thats about it, I have made any other configuration changes to bind.
Thanks
Gareth
More information about the bind-users
mailing list