Добрый день! Совершенно запутался в этом вопросе..
Задача: настроить днс сервер.
Опыта в этом нет, удалось нагуглить несколько советов:
http://www.linuxquestions.org/questions/linux-server-73/bind-and-unknown-rr-t...
http://www.server-world.info/en/note?os=CentOS_6&p=dns&f=1
Заранее прошу прощения за много букоф - конфиги для полноты картины.
Провайдер даёт:
IP 212.110.139.66 (static)
DNS1: 212.110.128.16
DNS2: 212.110.128.65
Чудо техники DIR-120 выпускает:
DHCP IP: 192.168.24.101
DNS/Gateway: 192.168.24.1
/etc/resolf.conf :
domain mydomain.com
search mydomain.com
nameserver 212.110.128.16
nameserver 212.110.128.65
/etc/hosts :
192.168.24.101 mydomain.com
127.0.0.1 localhost.localdomain localhost
::1 mydomain.com localhost.localdomain localhost
/etc/named.conf :
options {
listen-on-v6 { none; };
directory "/var/named/";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/named_mem_stats.txt";
allow-query { any; };
allow-transfer { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view "internal" {
match-clients {
localhost;
192.168.24.101;
};
zone "." IN {
type hint;
file "named.ca";
};
zone "mydomain.com" IN {
type master;
file "mydomain.com.lan";
allow-update { none; };
};
zone "101.24.168.192.in-addr.arpa" IN {
type master;
file "101.24.168.192.db";
allow-update { none; };
};
view "external" {
match-clients { any; };
allow-query { any; };
recursion no;
zone "mydomain.com" IN {
type master;
file "mydomain.com.wan";
allow-update { none; };
};
zone "66.139.110.212.in-addr.arpa" IN {
type master;
file "66.139.110.212.db";
allow-update { none; };
};
};
/var/named/mydomain.com.lan :
$TTL 86400
@ IN SOA server.mydomain.com. root.mydomain.com. (
2011080401;
3600;
1800;
604800;
86400;
)
IN NS server.mydomain.com.
IN A 192.168.24.1
IN MX 10 server.mydomain.com.
server IN A 192.168.24.1
/var/named/mydomain.com.wan :
$TTL 86400
@ IN SOA server.mydomain.com. root.mydomain.com. (
2011080401;
3600;
1800;
604800;
86400;
)
IN NS server.mydomain.com.
IN A 212.110.128.16
IN MX 10 server.mydomain.com.
server IN A 212.110.128.16
/var/named/101.24.168.192.db :
$TTL 86400
@ IN SOA server.mydomain.com. root.mydomain.com. (
2011080401;
3600;
1800;
604800;
86400;
)
IN NS server.mydomain.com.
IN PTR mydomain.com.
IN A 255.255.255.0
1 IN PTR server.mydomain.com.
/var/named/66.139.110.212.db :
$TTL 86400
@ IN SOA server.mydomain.com. root.mydomain.com. (
2011080401;
3600;
1800;
604800;
86400;
)
IN NS server.mydomain.com.
IN PTR mydomain.com.
IN A 255.255.255.248
16 IN PTR server.mydomain.com.
Вот что etc/rc.d/init.d/named restart пишет:
Error in named configuration:
zone mydomain.com/IN: loaded serial 2011080401
zone 101.24.168.192.in-addr.arpa/IN: loaded serial 2011080401
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN:
loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
mydomain.com.wan:2: unknown RR type 'server.mydomain.com.'
zone mydomain.com/IN: loading from master file
mydomain.com.wan failed: unknown class/type
zone mydomain.com/IN: not loaded due to errors.
external/mydomain.com/IN: unknown class/type
zone 66.139.110.212.in-addr.arpa/IN: loaded serial 2011080401
Буду очень рад любым соображения/критике/высмеиванию и пр.