[Gllug] Any bind experts?

Benjamin Donnachie benjamin at py-soft.co.uk
Thu Nov 2 16:09:38 UTC 2006


Matthew King wrote:
> Everything looks fine although that isn't a great deal. You should
> probably post your named.conf (along with any files it
> includes).

Here goes!

/etc/named.conf:
## named.conf - configuration for bind

logging {
        channel request_log {
                file "/var/log/named/requests.log" versions 2 size 5m;
                print-time 1;
                print-category 1;
                print-severity 0;
        };
        channel xfer_log {
                file "/var/log/named/xfer.log" versions 4 size 20m;
                print-time 1;
                print-category 0;
                print-severity 0;
        };
        #category cname             { null; };
        category config            { default_syslog; };
        #category db                { null; };
        category default           { default_syslog; default_debug; };
        #category eventlib          { default_debug; };
        #category insist            { null; };
        category lame-servers      { null; };
        #category load              { default_syslog; };
        #category maintenance       { null; };
        #category ncache            { null; };
        category notify            { null; };
        #category os                { null; };
        #category packet            { default_debug; };
        #category panic             { default_syslog; default_stderr; };
        #category parser            { null; };
        category queries           { request_log; };
#       category response-checks   { request_log; };
        category security          { request_log; };
        #category statistics        { null; };
        category update            { null; };
        category xfer-in           { xfer_log; };
        category xfer-out          { xfer_log; };
};

options {
        version "I think not.";
        directory "/var/named/";
        #listen-on port 53 { 10.0.0.0/8; };
        #query-source address 127.0.0.1 port *;
        #transfer-source 127.0.0.1;
        forwarders { 194.168.4.100; 194.168.8.100; };
	# ^^ When empty lists.nuclearelephant.com fails.
        #check-names master warn;
        #check-names slave warn;
        #check-names response warn;
        #allow-query     { 10.0.0.0/8; };
        #allow-recursion { 10.0.0.0/8; };
        #allow-transfer  { 10.0.0.0/8; };
        blackhole { };
        random-device "/dev/urandom";
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/rndc.key";

zone "dyndns.org" {
        type master;
        file "redirect.db";
        allow-update { none; };
};


zone "pythagoras.no-ip.org" {
        type master;
        file "pythagoras_no-ip_org.db";
        allow-update { none; };
};

zone "rbl.py-soft.co.uk" {
        type master;
        file "py-soft-rbl.db";
        allow-update { localhost; };
};

zone "61.168.192.in-addr.arpa" IN {
        type master;
        file "rev.pythagoras_no-ip_org.db";
        allow-update { none; };
};

zone  "." {
        type hint;
        file  "named.ca";
};
zone  "0.0.127.in-addr.arpa" {
        type master;
        file  "0.0.127.in-addr.arpa.zone";
};
zone  "localhost" {
        type master;
        file  "localhost.zone";
};


/var/named/pythagoras_no-ip_org.db:
; BIND db file for pythagoras.no-ip.org

$TTL 86400

@       IN      SOA     dns.pythagoras.no-ip.org.
postmaster.pythagoras.no-ip.org. (
                        2006110201      ; serial number YYMMDDNN
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400           ; Min TTL
                        )

                NS      dns.pythagoras.no-ip.org.

                MX      5 smtp.pythagoras.no-ip.org.


$ORIGIN pythagoras.no-ip.org.

router          IN      A       192.168.61.1
kevin           IN      A       192.168.61.2

; Other aliases
dns             IN      CNAME   kevin
www             IN      CNAME   kevin
mail            IN      CNAME   kevin
smtp            IN      CNAME   kevin
ssh             IN      CNAME   kevin
upload          IN      CNAME   kevin
imap            IN      CNAME   kevin
vpn             IN      CNAME   kevin

; Mail domain aliases.
listhost        IN      A       192.168.61.2
dspam           IN      A       192.168.61.2


/var/named/rev.pythagoras_no-ip_org.db:
; Reverse lookup file for local pythagoras.no-ip.org network

$TTL    86400

@       IN      SOA     dns.pythagoras.no-ip.org.
root.pythagoras.no-ip.org.  (
                                      2006030501 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum

              IN      NS      dns.pythagoras.no-ip.org.

1       IN      PTR     router.py-soft.co.uk.
2       IN      PTR     kevin.py-soft.co.uk.


/var/named/redirect.db:
$TTL 86400

@       IN      SOA     dns.pythagoras.no-ip.org.
postmaster.pythagoras.no-ip.org. (
                        2006050601      ; serial number YYMMDDNN
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400           ; Min TTL
                        )

                NS      dns.pythagoras.no-ip.org.

$ORIGIN dyndns.org.

; Intention to redirect updates bound for dyndns to no-ip...

members         IN      CNAME   dynupdate.no-ip.com.    ; EXTREF


/var/named/py-soft-rbl.db:
$TTL 86400      ; 1 day
rbl.py-soft.co.uk       IN SOA  dns.pythagoras.no-ip.org.
postmaster.py-soft.co.uk. (
                                2006103025 ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                864000     ; expire (1 week 3 days)
                                86400      ; minimum (1 day)
                                )
                        NS      dns.pythagoras.no-ip.org.

; Local RBL updated using nsupdate.

$ORIGIN rbl.py-soft.co.uk.


/var/named/localhost.zone:
$TTL 86400
@       IN      SOA     @  root.localhost (
                        1 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire
                        86400 ; ttl
                        )


@       IN      NS      localhost.


@       IN      A       127.0.0.1


/var/named/0.0.127.in-addr.arpa.zone
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      localhost.

1       IN      PTR     localhost.


I included named.ca in my last message.

> Perhaps the cache is stale, try running rndc flush on the server (or ndc
> flush if you use bind 8).

Tried that and restarting named but no joy! :-/

Take care,

Ben
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list