Доброго времени суток!
Развернул я DNS со следующими настройками: named.conf
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
version "[secured]";
listen-on port 53 { 127.0.0.1; 192.168.0.1; };
allow-query { 127.0.0.1; 192.168.0.0/24; };
allow-recursion { 127.0.0.1; 192.168.0.0/24; };
allow-transfer { 127.0.0.1; };
forwarders {
8.8.8.8;
193.58.251.251;
};
};
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
#zone "localhost" IN {
# type master;
# file "localhost.zone";
# allow-update { none; };
# };
zone "firma.local" IN {
type master;
file "/var/named/firma.local.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "/var/named/0.168.192.rev";
allow-update { none; };
};
key "rndc-key" {
algorithm hmac-md5;
secret "SsyKRe9rco3cGM+6pbDIvQ==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
$TTL 86400
@ IN SOA firma.local. root.firma.local. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS ns1.firma.local.
@ IN A 192.168.0.1
ns1 IN A 192.168.0.1
@ IN MX 10 mail.firma.local.
mail IN A 192.168.0.1
WWW IN A 192.168.0.1
firmaserver IN A 192.168.0.1
otherservername IN A 192.168.0.1
serv-test IN A 192.168.0.10
$TTL 86400
@ IN SOA firma.local. root.firma.local. (
100 ; serial
1H ; refresh
1M ; retry
1W ; expiry
1D) ; minimum
@ IN NS ns1.firma.local.
1 IN PTR dserv.firma.local.
Мне надо, чтобы компьютеры в моей сети набрав в адресной строке mysite.firma.local попадали на сервер 192.168.0.1, но прописав в зону просто
mysite.firma.local IN A 192.168.0.1