Johannes' BIND page


Johannes Franken
<jfranken@jfranken.de>



Contents

  1. Intended purpose
  2. Minimal configuration
  3. Usage
  4. Logfiles
  5. Advanced topics
    1. Determining a remote DNS server's software
  6. Links

Intended purpose

bind (abb: Berkeley Internet Name Domain) is the prefered nameserver under Linux. As such its job is to
 

Minimal configuration

Task:
bind should

Solution:

Usage

Logfiles

see /var/log/syslog or /var/log/messages.

You can set the detail level for the logfiles in named.conf:

// reduce log verbosity on issues outside our control
logging {
        category lame-servers { null; };
        category cname { null; };
};

 

Advanced topics

Determining a remote DNS server's software

You can remotely determine the software a remote DNS server is running on:
$ dig @pns.dtag.de version.bind. txt CHAOS|grep -i "^V"
VERSION.BIND.           0S CHAOS TXT    "BIND 8.3.4"

Of course, you can also do that with bash and netcat:
$ whatdns() {
   printf 'begin-base64 644 -\np8IBAAABAAAAAAAAB3ZlcnNpb24EYmluZAAAEAADCg==\n===='|
   uudecode| nc -uw 1 $1 domain | strings| tail -1; }
$ whatdns pns.dtag.de
BIND 8.3.4
$ whatdns 141.2.1.1
4.9.7

However, bind-admins can overwrite the version-field with arbitrary text by setting options{version "...";} in named.conf:
$ whatdns ns.jfranken.de
Surely you must be joking

Links


$Id: bind.wml,v 1.14 2006/08/12 18:20:14 jfranken Exp $ [ChangeLog]
$Id: template.inc,v 1.82 2010-09-04 12:58:17 jfranken Exp $ [ChangeLog]
© Johannes Franken. Imprint and disclaimer
Valid XHTML 1.0!