Named error network unreachable in system logs
named[28275]: network unreachable resolving
https://techglimpse.com/named-error-network-unreachable-fix/
------------------------------------------------------------------------
How to fix Named error network unreachableLooking at the error message closely, named was trying to resolve IPv6 addresses. But the system does not have an IPv6 networking configured and that was the reason behind this error. I quickly verified 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! Get back to system log (/var/log/messages ) and see if those errors still captured. Is this a security attack? In most cases, it’s normal and setting the above option should stop the error. But again it depends on what services are running on the system. Note: In some Linux flavors, the configuration files of named/bind might be in different location.
Updated on January 13, 2021 |