[plug] DNS server

Russ Powers russ at powerstech.com
Thu Sep 2 17:29:02 WST 2004


Hi,

I'm trying to set up a dns server. I've installed bind9 on my debian server 
and configured named.conf and created a zone file for the domain. 

The server is on my lan behind a firewall to the net. I've opened up port 53 
on the firewall.

I can run:

dig any gdw.com.au

on the dns server and on my local puter and I get:

; <<>> DiG 9.2.1 <<>> any gdw.com.au
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38217
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;gdw.com.au.                    IN      ANY

;; ANSWER SECTION:
gdw.com.au.             259200  IN      SOA     ns.gdw.com.au. 
hostmaster.gdw.com.au. 2000021605 28800 7200 2419200 86400
gdw.com.au.             259200  IN      NS      ns.gdw.com.au.
gdw.com.au.             259200  IN      NS      ns1.iinet.
gdw.com.au.             259200  IN      MX      10 mail.gdw.com.au.

;; ADDITIONAL SECTION:
ns.gdw.com.au.          259200  IN      A       203.59.48.65
mail.gdw.com.au.        259200  IN      A       203.59.48.65

;; Query time: 47 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Sep  2 17:03:51 2004
;; MSG SIZE  rcvd: 168

But it doesn't seem to make any difference. I can't send mail to that domain. 
I've run the dns and mail test on http://www.dnsreport.com/ and they both 
fail not seeing anything.

Below is the zone file and named.conf.

I've been reading dns howto's (there ar plenty of them) all day and haven't 
seen anything promising yet.

Any thoughts or pointers? 

Thanks.

;
; The full zone file
;
$TTL 3D
@       IN      SOA     ns.gdw.com.au. hostmaster.gdw.com.au. (
                        2000021605      ; serial, todays date + todays serial 
#
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
;
                NS      ns              ; Inet Address of name server
                NS      ns1.iinet.
                MX      10 mail.gdw.com.au.     ; Primary Mail Exchanger
;                MX      20 mail.friend.bogus.   ; Secondary Mail Exchanger
;
localhost       A       127.0.0.1
ns              A       203.59.48.65
;ns1            A       ns1.iinet
mail            A       203.59.48.65
www             CNAME   ns


// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you might need to uncomment the query-source
        // directive below.  Previous versions of BIND always asked
        // questions using port 53, but BIND 8.1 and later use an unprivileged
        // port by default.

        query-source address * port 53;

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        forwarders {
                203.0.178.191;
        };

        auth-nxdomain no;    # conform to RFC1035

};

// 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";
};

// add entries for other zones below here

zone "gdw.com.au" {
        type master;
        file "/etc/bind/db.gdw.com.au";
        allow-transfer { 127.0.0.1; };
        notify yes;
};


-- 
Regards,
Russ



More information about the plug mailing list