cicciofriz
23-11-2004, 00.39.30
ho installato bind 9.2.2 su slack 9.1, il server dns con i file di ocnfigurazione di base funziona, vorrei aggiungere la corrispondenza del mio server web locale con la voce www.turati155.it, ma se uso i seguenti file di configurazione non risolve l'indirizzo di turati155
dove sbaglio ?
/etc/named.conf
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.ca";
};
zone "localhost" IN {
type master;
file "caching-example/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};
zone "turati155.it" IN {
type master;
file "pz/turati.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "pz/turati";
allow-update { none; };
};
/var/named/pz/turati.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
www 1D IN A 192.168.1.83
/var/named/pz/turati
$TTL 86400
@ IN SOA turati155.it root.turati155.it (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
83 IN PTR localhost.
dove sbaglio ?
/etc/named.conf
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.ca";
};
zone "localhost" IN {
type master;
file "caching-example/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};
zone "turati155.it" IN {
type master;
file "pz/turati.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "pz/turati";
allow-update { none; };
};
/var/named/pz/turati.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
www 1D IN A 192.168.1.83
/var/named/pz/turati
$TTL 86400
@ IN SOA turati155.it root.turati155.it (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
83 IN PTR localhost.