How to make bind/named to listen for requests on both IPV4 and IPV6
Harshith Mulky
harshith.mulky at outlook.com
Tue Nov 10 05:17:58 UTC 2015
Hi,
I would want my Test DNS Server running bind Version: bind-9.8.2-0.17.rc1.el6.x86_64/bind-chroot-9.8.2-0.17.rc1.el6.x86_64 to listen for Requests on both IPV4 and IPV6.
--------------------------------------------------------------------------------------------------------------------------------------------------
I made the following changes in Options --> Added listen-on-v6 { any; };
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
listen-on-v6 { any; };
recursion no;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
---------------------------------------------------------------------------------------------------------------------------------------------------
and I made a simple test to figure if this was working -->
# dig localhost @::1
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6 <<>> localhost @::1
;; global options: +cmd
;; connection timed out; no servers could be reached
--------------------------------------------------------------------------------------------------------------------------------------------------
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
--------------------------------------------------------------------------------------------------------------------------------------------------
I see that named is not listening on IPV6
[root at guntur named]# netstat -lnptu |grep "named\W*$"
tcp 0 0 10.54.78.28:53 0.0.0.0:* LISTEN 7331/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 7331/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 7331/named
tcp 0 0 ::1:953 :::* LISTEN 7331/named
udp 0 0 10.54.78.28:53 0.0.0.0:* 7331/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 7331/named
[root at guntur named]# netstat -tupanl | grep ":53 "
tcp 0 0 10.54.78.28:53 0.0.0.0:* LISTEN 7331/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 7331/named
udp 0 0 10.54.78.28:53 0.0.0.0:* 7331/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 7331/named
What changes would be required to make Bind Listen on both IPV4 and IPV6?
Thanks
Harshith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20151110/55cabea3/attachment.html>
More information about the bind-users
mailing list