Bind IPv6 problem

I am trying to set up Bind (for self-education mostly). With the default configuration I can do nslookup $anyaddress 127.0.0.1 and get the answer. (Let’s say $anyaddress = ya.ru, for example) But if I do nslookup $anyaddress localhost, I get

Server:		localhost
Address:	::1#53

** server can't find ya.ru: REFUSED

Okay, it seems that by default localhost equals IPv6 address, ::1. So I went to /etc/named.conf and uncommented listen-on-v6·{·any;·};

But if after that I try nslookup $anyaddress localhost, I still get

Server:		localhost
Address:	::1#53

** server can't find ya.ru: REFUSED

Why?

With this option, bind will listen on any IPv6 IP address but it does not allow any IPv6 to make queries.

Make sure you add ::1 to the allowed IP address in allow-recursion . Do not use any.

1 Like

Thanks!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.