/var/log/message 錯誤error (network unreachable)

abin1703發表於2016-07-01
如果在/var/log/message日誌裡出現一下內容
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'ns1.nic.uk/AAAA/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'nsc.nic.uk/A/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'nsc.nic.uk/AAAA/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'ns2.nic.uk/AAAA/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'ns3.nic.uk/AAAA/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'nsa.nic.uk/AAAA/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving './NS/IN': 2001:500:2f::f#53
Jul  8 13:36:34 master named-sdb[6324]: error (network unreachable) resolving 'ns6.nic.uk/AAAA/IN': 2001:500:2f::f#53


原因是try to use IPv6 transport even if the server host does not have IPv6 connectivity

解決方法:

可以在直接編譯配置檔案/etc/sysconfig/named,去除去IPv6的解析,只解析IPv4,OPTIONS="whatever" 改為 OPTIONS="-4",注意OPTIONS選項的值可以是:whatever、-4、-6中的一個

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30345407/viewspace-2121311/,如需轉載,請註明出處,否則將追究法律責任。

相關文章