[Comm] DNS ÓÅÒ×ÅÒ
Jura
=?iso-8859-1?q?jury_=CE=C1_land=2Eru?=
ó ñÎ× 24 17:17:14 MSK 2004
Guzaev Pavel ÐÉÛÅÔ:
>÷ÓÅ ÞÔÏ ÚÄÅÓØ ÎÁÐÉÓÁÎÏ, - ÎÁ ÏÓÎÏ×ÁÎÉÉ ÌÉÞÎÏÇÏ ÏÐÙÔÁ... ÍÏÖÅÔ ÂÙÔØ ÎÅ ÓÏ×ÓÅÍ
>ÎÁÕÞÎÙÍÉ ÔÅÒÍÉÎÁÍÉ :)
>õÄÁÞÉ...
>
óÐÁÓÉÂÏ!
ó ÒÁÚÍÅÝÅÎÉÅÍ ÆÁÊÌÏ× Ñ ÒÁÚÏÂÒÁÌÓÑ. îÏ ×ÉÄÅÍÏ ÎÅ ×ÓÅ ÓÄÅÌÁÌ ÐÒÁ×ÉÌØÎÏ:
óÅÊÞÁÓ BIND ÒÁÂÏÔÁÅÔ ËÁË DNS ÓÅÒ×ÅÒ ÄÌÑ ×ÎÅÛÎÉÈ ÁÄÒÅÓÏ×.
òÁÚÒÅÛÁÅÔ ÉÍÅÎÁ ×ÎÅÛÎÉÈ ÕÚÌÏ×, ×ÓÅÈ, ËÒÏÍÅ ÍÏÅÇÏ ÄÏÍÅÎÁ.
÷ÓÅ ÁÄÒÅÓÁ ÓÔÁÔÉÞÅÓËÉÅ ÂÅÚ dhcp.
÷ ÓÅÔÉ ÏÄÉÎ ÓÅÒ×ÅÒ ÄÌÑ ×ÓÅÇÏ - www, mail, DNS
# cat /var/lib/bind/etc/rfc1912.conf
zone "." {
type hint;
file "named.cache";
};
zone "compozitor.spb.ru" {
type master;
file "named.compozitor.spb.ru";
allow-update { none; };
};
zone "localhost" {
type master;
file "localhost";
allow-update { none; };
};
zone "127.in-addr.arpa" {
type master;
file "127.in-addr.arpa";
allow-update { none; };
};
zone "0.in-addr.arpa" {
type master;
file "empty";
allow-update { none; };
};
zone "255.in-addr.arpa" {
type master;
file "empty";
allow-update { none; };
};
# cat /var/lib/bind/zone/named.compozitor.spb.ru
$TTL 1D
@ IN SOA jsrv.compozitor.spb.ru. \
jury.compozitor.spb.ru. (
2004012403 ; serial
12H ; refresh
1H ; retry
1W ; expire
1H ; ncache
)
jsrv.compozitor.spb.ru. IN A 213.172.18.161
www IN A 213.172.18.161
compozitor.spb.ru. IN A 213.172.18.161
jsrv IN A 213.172.18.161
jlsrv IN A 192.168.100.1
@ IN MX 10 jsrv.compozitor.spb.ru.
@ IN NS jsrv.compozitor.spb.ru.
@ IN A 192.168.100.1
# cat /var/lib/bind/zone/127.in-addr.arpa
$TTL 1D
@ IN SOA jsrv.compozitor.spb.ru. \
jury.compozitor.spb.ru. (
2004012401 ; serial
12H ; refresh
1H ; retry
1W ; expire
1H ; ncache
)
@ IN NS jsrv.compozitor.spb.ru.
0.100.168.192.in-addr.arpa. IN PTR compozitor.spb.ru.
1.100.168.192.in-addr.arpa. IN PTR jlsrv.compozitor.spb.ru.
# cat /resolv.conf
domain compozitor.spb.ru
nameserver 127.0.0.1
nameserver 212.44.131.6
nameserver 212.44.130.6
ËÏÍÁÎÄÁ ÈÏÓÔ ×ÙÄÁÅÔ ÓÌÅÄÕÀÝÉÅ ÓÏÏÂÝÅÎÉÑ:
# host jsrv
Host jsrv not found: 3(NXDOMAIN)
# host 192.168.100.1
Host 1.100.168.192.in-addr.arpa not found: 3(NXDOMAIN)
# host compozitor.spb.ru
Host compozitor.spb.ru not found: 2(SERVFAIL)
# host www.compozitor.spb.ru
Host www.compozitor.spb.ru not found: 2(SERVFAIL)
ðÏÄÓËÁÖÉÔÅ, ÞÔÏ Ñ ÓÄÅÌÁÌ ÎÅ ÔÁË?
ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ community