The error occurs because of IPv6 addresses. But the system does not have an IPv6 networking configuration and this was the reason behind the error.

Verify, if "named" was set to listen on IPv6 address.

# vim /etc/named.conf
options {
 listen-on port 53 { 127.0.0.1; };
 //listen-on-v6 port 53 { ::1; };
 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 { localhost; };

In the above snapshot, listen-on-v6 port 53 { ::1; } has been commented out meaning bind/named is not listening on IPv6 address. Finally, I understand that the configuration was missing with the below option.

OPTIONS="-4"

To fix this error, all you need to do is open the named file located under /etc/sysconfig/ and added the said option.

# vim /etc/sysconfig/named

Copy and paste the below line.

OPTIONS="-4"

Save the file and restart named service.

# systemctl restart named

Confirm that the named service is running.

# systemctl status named


That’s it!

Дали Ви помогна овој одговор? 0 Корисниците го најдоа ова како корисно (1 Гласови)