Named: Difference between revisions
From Leo's Notes
This page was last edited on 5 May 2013, at 18:21.
Created page with " == Disable IPv6 Lookups == If you have querylog enabled, you may see lots of messages like: <syntaxhighlight lang="text" line start="1" enclose="div"> May 5 12:14:44 linux..." |
No edit summary |
||
| Line 1: | Line 1: | ||
== Enable Query Logging == | |||
Use <code>rndc</code> to enable query logging: | |||
rndc querylog on | |||
Lookups will then be dumped into <code>/var/log/messages</code> | |||
== Disable IPv6 Lookups == | == Disable IPv6 Lookups == | ||
Revision as of 18:21, 5 May 2013
Enable Query Logging
Use rndc to enable query logging:
rndc querylog on
Lookups will then be dumped into /var/log/messages
Disable IPv6 Lookups
If you have querylog enabled, you may see lots of messages like:
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns2.google.com/A/IN': 2001:503:231d::2:30#53
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns2.google.com/AAAA/IN': 2001:503:231d::2:30#53
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns3.google.com/A/IN': 2001:503:231d::2:30#53
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns4.google.com/A/IN': 2001:503:231d::2:30#53
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns3.google.com/AAAA/IN': 2001:503:231d::2:30#53
May 5 12:14:44 linux named[2492]: error (network unreachable) resolving 'ns1.google.com/A/IN': 2001:503:231d::2:30#53
May 5 12:14:57 linux named[2492]: error (network unreachable) resolving 'ns2.p42.dynect.net/A/IN': 2001:500:3::42#53
Since I don't have IPv6 on my network, it's obvious why I can't lookup IPv6 addresses. To fix this, do:
vi /etc/sysconfig/named
OPTIONS="-4"