All pastes #506864 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-24 07:41 UTC
rendered paste body
server:/etc/bind# ls
assa-electronic.ro.zone  db.empty    named.conf.backup   zones.rfc1918
db.0                     db.local    named.conf.local
db.127                   db.root     named.conf.options
db.255                   named.conf  rndc.key


-----------------------------------------------------------------------------------------------------------------------------------


# OS: Debian Linux 4.0
# 192.168.0.8 is the PC in the LAN running DNS,Web and Mail
# Router has ports 53 udp/tcp forwarded to 192.168.0.8 and HTTP/SMTP/IMAP too
# No firewall rules defined that block any traffic not on router or on PC

server:/etc/bind# cat named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

zone    "assa-electronic.ro" {
        type master;
        file "/etc/bind/assa-electronic.ro.zone";
};

zone "0.0.168.192.in-addr.arpa" {
     type master;
     file "/etc/bind/0.0.168.192.in-addr.arpa";
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";



-----------------------------------------------------------------------------------------------------------------------------------


server:/etc/bind# cat assa-electronic.ro.zone
; Start of Authority (SOA) record
$TTL 86400

@       IN      SOA     assa-electronic.ro. dnsadmin.assa-electronic.ro (
                        7       ; serial
                        6H      ; refresh
                        1H      ; retry
                        5D      ; expire
                        20M )   ; TTL

        IN      NS      dns.assa-electronic.ro.
        IN      MX      10      mail.assa-electronic.ro.

@       IN      A       89.137.12.19
www     IN      A       89.137.12.19
dns     IN      A       89.137.12.19
mail    IN      A       89.137.12.19


-----------------------------------------------------------------------------------------------------------------------------------


server:/var/log# tail -20 daemon.log
May 24 06:32:30 server named[4758]: no longer listening on 127.0.0.1#53
May 24 06:32:30 server named[4758]: no longer listening on 192.168.0.8#53
May 24 06:32:30 server named[4758]: exiting
May 24 06:32:31 server named[4933]: starting BIND 9.3.4 -u bind
May 24 06:32:31 server named[4933]: found 1 CPU, using 1 worker thread
May 24 06:32:31 server named[4933]: loading configuration from '/etc/bind/named.conf'
May 24 06:32:31 server named[4933]: listening on IPv6 interfaces, port 53
May 24 06:32:31 server named[4933]: listening on IPv4 interface lo, 127.0.0.1#53
May 24 06:32:31 server named[4933]: listening on IPv4 interface eth0, 192.168.0.8#53
May 24 06:32:31 server named[4933]: command channel listening on 127.0.0.1#953
May 24 06:32:31 server named[4933]: command channel listening on ::1#953
May 24 06:32:31 server named[4933]: zone 0.in-addr.arpa/IN: loaded serial 1
May 24 06:32:31 server named[4933]: zone 127.in-addr.arpa/IN: loaded serial 1
May 24 06:32:31 server named[4933]: zone 0.0.168.192.in-addr.arpa/IN: loading master file /etc/bind/0.0.168.192.in-addr.arpa: file not found
May 24 06:32:32 server named[4933]: zone 255.in-addr.arpa/IN: loaded serial 1
May 24 06:32:32 server named[4933]: zone localhost/IN: loaded serial 1
May 24 06:32:32 server named[4933]: zone assa-electronic.ro/IN: loaded serial 7
May 24 06:32:32 server named[4933]: running
May 24 06:32:32 server named[4933]: zone assa-electronic.ro/IN: sending notifies (serial 7)
May 24 06:32:32 server named[4933]: client 192.168.0.1#1034: received notify for zone 'assa-electronic.ro'