software:dns
This is an old revision of the document!
Table of Contents
Check DNS settings
named-checkconf /etc/named.conf named-checkzone (needs parameters)
Benchmark dns
DNS servers
PowerDNS
From: https://www.powerdns.com/downloads.html
Both the PowerDNS Authoritative and the PowerDNS Recursive Servers are available in source form, as well as installable Linux Packages. PowerDNS is shipped with many Linux and UNIX distributions, including Debian, FreeBSD, Gentoo, NetBSD, SUSE and Ubuntu. Users of these distributions may find they already have a copy of PowerDNS available, often in the package called pdns, powerdns-server, pdns-recursor or pdns-server.
Bind
4.2: Add a zone for the local domain: zone "home.lan" IN { type master; file "/etc/bind/zones/home.lan.db"; }; 4.3: Also add a zone for reverse dns lookups for the local network: zone "0.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.0.168.192.in-addr.arpa"; };
linux named
From: http://pgl.yoyo.org/as/bind-zone-file-creator.php
Using the form below, you can create a zone file for use with the BIND DNS server.
Linux bind Log Format
From: http://www.zytrax.com/books/dns/ch7/logging.html
More complete description
From: http://download.logreport.org/pub/current/doc/user-manual/ch07.html
logging { channel query_logging { file "/var/log/named_querylog" versions 3 size 100M; print-time yes; // timestamp log entries };
category queries { query_logging; }; };
HOWTO dump/export the cache of a BIND DNS server
From: http://serverfault.com/questions/2813/list-of-domains-on-dns-server
- *rndc dumpdb -zones This will create a dump of the server's authoritative data called cache_dump.db, probably in /var/named/data (or similar). From: http://ubuntuforums.org/showthread.php?t=903651 Last night I spent about an hour looking around google for how to dump and view the cache of a bind dns server. I just wanted to post this thread on how to do it so maybe next time people search they will able to find it easier Bind 9 makes it fairly easy to dump and view the cache of a caching BIND DNS server. All you have to do is run under root: rndc dumpdb -cache**
This will create a file called named_dump.db in the /var/cache/bind/ directory. You can easily open this .db with your favorite text editor.
If your instance of BIND is chrooted, for example to /var/lib/named/, then the cache dump file will be located in the /var/lib/named/var/cache/bind/ directory.
The dumpdb feature of rndc has other options including a -all or -zone flag. Check 'rndc --help' for more information. For more information you can check out this HOWTO i drafted.
software/dns.1413595374.txt.gz · Last modified: 2014/10/18 01:22 by superwizard