Dostałem zadanie dopisania dwóch numerów w wersji IPv6 do pliku konfiguracyjnego serwera Bind który do tej pory obsługiwał IPv4. Dla ścisłości dodam że chodzi o to że dwa wpisy w pliku strefy mają być również w postaci IPv6. Zrobiłem odpowiedni wpis w /etc/bind/named.conf.options tzn. dodałem listen-on-v6 { any; } oraz te dwa wpisy dla serwerów w IPv6. Niestety dla tych dwóch wpisów serwer przestał odpowiadać. Nie wiem czy można zrobić to w ten sposób który zrobiłem, w sensie czy dana domena może mieć wpisy w pliku strefy zarówno dla IPv4 jak i IPv6 ?
Plik /etc/bind/named.conf.options
Kod: Zaznacz cały
options {
directory "/var/cache/bind";
transfer-source * port 53;
notify-source * port 53;
listen-on-v6 { any; };
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
query-source port * ;
// 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.
auth-nxdomain yes; # conform to RFC1035
// By default, name servers should only perform recursive domain
// lookups for their direct clients. If recursion is left open
// to the entire Internet, your name server could be used to
// perform distributed denial of service attacks against other
// innocent computers. For more information on DDoS recursion:
// http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0987
version "Microsoft DNS Server v1.5 (WinME)";
};
Kod: Zaznacz cały
;
; plik strefy dla test.pl
;
$TTL 86400
$ORIGIN sgsp.edu.pl.
@ IN SOA ns.test.pl. pomoc.test.pl. (
2010040103
10800
3600
3600000
3600 )
IN MX 5 mail.test.pl.
test.pl. IN TXT "v=spf1 ip4:195.187.79.198 -all"
ns IN A 195.187.79.3
fiz IN A 195.187.79.41
mail IN A 195.187.79.198
mail IN AAAA fe80::230:48ff:febd:f42c%5
www IN A 195.187.79.41
www IN AAAA 2002:c3bb:4f29::
www.zn IN A 195.187.79.41
sa IN A 195.187.79.41