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?