Имам регистриран домейн в godaddy.com, в него съм описал два записа ns1.example.com и ns2.example.com който съм насочил към ip-то на машината.
Имам втори домейн test.com, сложил съм му нейм сървъри ns1.example.com и ns2.example.com.
Ето и конфигурациите на моя бинд9
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
213.246.33.144;
213.246.36.14;
80.93.83.11;
80.93.83.25;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
zone "test.com" {
type master;
file "/etc/bind/zones/master/test.com.db";
};
zone "57.123.213.in-addr.arpa" {
type master;
file "/etc/bind/zones/master/57.123.213.db";
};
[/etc/bind/zones/master/test.com.db/CODE]
[CODE]$TTL 600
@ IN SOA ns1.test.com. admin.test.com. (
2013071600 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
@ IN NS ns1.test.com.
@ IN NS ns2.test.com.
test.com. IN MX 10 mail.test.com.
test.com. IN A my_public_ip
ns1 IN A my_public_ip
ns2 IN A my_public_ip
www IN CNAME test.com.
mail IN CNAME my_public_ip
ftp IN CNAME test.com.
/etc/bind/zones/master/57.123.213.db
$TTL 600
my_public_ip.in-addr.arpa. IN SOA ns1.test.com. admin.test.com. (
2013071600 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
;
my_public_ip.in-addr.arpa. IN NS ns1.test.com.
my_public_ip.in-addr.arpa. IN NS ns2.test.com.
my_public_ip.in-addr.arpa. IN PTR test.com.
Проблема е че от 5 места отговаря test.com от 10 не