Ok, here is an update of my files to start DNS:
named.conf
PHP Code:
options {
directory "/var/named";
query-source address * port 53;
};
logging{
category lame-servers{
null;
};
};
zone "." IN {
type hint;
file "named.cache";
};
zone "test.com" {
type master;
file "test.com";
allow-update { none; };
allow-transfer { 144.67.67.2; };
notify yes;
};
zone "67.67.144.in-addr.arpa" {
notify yes;
type master;
file "67.67.144.in-addr.arpa";
};
test.com
PHP Code:
$TTL 86400
$ORIGIN test.com.
@ IN SOA test.com. postmaster.test.com. (
2005110704 ; serial (d. adams)
8640 ; refresh
3600 ; retry
3600000 ; expiry
1209600 ) ; min
IN NS ns1.test.com.
IN NS ns2.test.com.
IN MX 10 test.com.
IN MX 10 mail.test.com.
@ IN A 144.67.67.1
www IN A 144.67.67.1
ns1 IN A 144.67.67.1
ns2 IN A 144.67.67.1
ftp IN A 144.67.67.1
mail IN A 144.67.67.1
pop IN A 144.67.67.1
smtp IN A 144.67.67.1
komp1 IN A 10.3.11.21
and the last one 160.238.83.in-addr.arpa
PHP Code:
@ IN SOA ns1.test.com. ns2.test.com. (
2005121001 ; serial (d. adams)
8640 ; refresh
3600 ; retry
3600000 ; expiry
1209600 ) ; min
;
NS ns1.test.com.
21 PTR test.com
and in the last file is a problem because when I rstarted BIND
in syslog I saw:
PHP Code:
Dec 10 13:43:59 proxy-2 named[13846]: 67.67.144.in-addr.arpa:1: no TTL specified; using SOA MINTTL instead
Dec 10 13:43:59 proxy-2 named[13846]: 67.67.144.in-addr.arpa: file does not end with newline
where and how specifi this TTL, and how check that revDNS works ?