[Tech] dns e indirizzi lan
Aldo Podavini
a.podavini@ldvsrl.it
Mer 30 Apr 2003 12:34:45 CEST
Leonardo Boselli wrote:
>allora mandaci il named.conf
>
Già mandato :-)
Comunque rieccolo:
allow-transfer {
127.0.0.1;
192.168.100.0/24;
};
allow-query {
127.0.0.1;
192.168.100.0/24;
};
forward first;
forwarders {
195.110.128.1;
193.70.152.25;
193.70.192.25;
195.130.224.18;
195.130.225.129;
};
};
logging {
category lame-servers { null; };
category cname { null; };
};
zone "." {
type hint;
file "/var/named/db.root";
};
zone "localhost" {
type master;
file "/var/named/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/var/named/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/var/named/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/var/named/db.255";
};
zone "my.home" {
type master;
file "/var/named/my.home";
};
zone "100.168.192.in-addr.arpa" {
type master;
file "/var/named/my.home.rev";
};
>e il file della zona gramicia.net
>
>
Uh ?
gramicia.net ?!?
my.home, vorrai dire....
Eccoli:
/var/named/my.home:
$ORIGIN my.home.
$TTL 1D
@ IN SOA box3.my.home. root.box3.my.home. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Default TTL
;
@ IN MX 10 box3.my.home.
@ IN NS box3.my.home.
@ IN A 192.168.100.202
box3 IN A 192.168.100.202
box2 IN A 192.168.100.204
box1 IN A 192.168.100.205
localhost IN A 127.0.0.1
www IN CNAME box3
mail IN CNAME box3
/var/named/my.home.rev:
$ORIGIN 100.168.192.in-addr.arpa.
$TTL 1D
@ IN SOA box3.my.home. root.box3.my.home. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Default TTL
@ IN NS box3.my.home.
202 IN PTR box3.my.home.
204 IN PTR box2.my.home.
205 IN PTR box1.my.home.
Ciao
Aldo
Maggiori informazioni sulla lista
flug-tech