HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\ParametersCreate a new DWORD "MaxCacheTtl" with a DECIMAL setting of 300 (for 300 seconds)
Then restart the DNS service (not required)
Helpful bits and bytes
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNS\ParametersCreate a new DWORD "MaxCacheTtl" with a DECIMAL setting of 300 (for 300 seconds)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DNSCache\ParametersCreate a new DWORD "NegativeCacheTime" with a DECIMAL setting of 30 (for 30 seconds)
channel querylog{
file "/var/log/querylog";
severity debug 10;
print-category yes;
print-time yes;
print-severity yes;
};
category queries { querylog;};
2) Create the log file
touch /var/log/querylog chown named.named /var/log/querylog3) Reload named.conf
service named reload4) Enable the logging channel
rndc querylog on5) View the log
tail -f /var/log/querylogTo save disk space you should disable logging once you've completed your log inspection
rndc querylog off echo > /var/log/querylog
_domainKey.domain.com. IN TXT ( "p=part of your key"
"another part of your key"
"last part of your key" )
By wrapping the entire value in brackets we keep it tied to one record and by quoting each line individually it allows us to surpass the line limit.dns_rdata_fromtext: near eol: unbalanced quotes dns_master_load: label too long dns_master_load: syntax error zone: loading master file: ran out of space
socket: file descriptor exceeds limit (4096/4096) could not listen on UDP socket: not enough free resource
ulimit -HSn 200000 OPTIONS="-4 -S 8096"to:
/etc/sysconfig/namedand then run:
service named restartVerify in /var/log/messages that you are no longer seeing those errors and also run:
service named status...to ensure NAMED is running properly.