dns is driving me crazy

Matthew Freeland matthewfreeland at hotmail.com
Wed Jul 9 06:26:28 CDT 2003


Hi all.  I'm sorry to bother you all with this again, but I am having the 
worst time understanding and installing Bind 9 for my dns server.  I want my 
server to be mapped to mfreeland.net.  It is behind a firewall (router), but 
I have opened port 53 and also set all three of the get-around-the-firewall 
settings in the named.conf to on.  I tried to send an email out concerning 
this before, but I don't know if it went out or not... note that I am forced 
to use a hotmail account now :-(.  Also, I am on Road Runner.  I know one of 
you has a similar setup, and I know it should work... I just can't figure it 
out.  Below are the zone files, the named.conf, the resolv.conf, and the 
/etc/hosts.  I would greatly appreciate any help that anyone could give me.  
Also, I've noticed that when I set localhost to be the nameserver in the 
resolv.conf in the beginning, it works, but at the end of the howto i've 
been following, i can't resolve any domain names (ping google.com fails) 
until i turn back on dhcp, which adds roadrunner's dns servers to my 
resolv.conf, but I doubt this is the way it should be.
Thanks, Matt Freeland

Here are the files: (minus all the coments and blank lines)

named.conf:

options {
        directory "/var/lib/named";
        listen-on-v6 { any; };
        query-source address * port 53;
        transfer-source * port 53;
        notify-source * port 53;
        notify no;
};
zone "." in {
        type hint;
        file "root.hint";
};
zone "0.0.127.in-addr.arpa" in {
        type master;
        file "127.0.0.zone";
};
zone "mfreeland.net" in {
        type master;
        notify no;
        file "mfreeland.net.zone";
};
zone "105.30.65.in-addr.arpa" in {
        type master;
        file "105.30.65.zone";
};

Here is the 105.30.65.zone:

$TTL 3D
@       IN      SOA     ns.mfreeland.net.  matthew.mfreeland.net. (
                        200307081 ; Serial, todays date + todays serial
                        8H      ; Refresh
                        2H      ; Retry
                        4W      ; Expire
                        1D)     ; Minimum TTL
                NS      ns.mfreeland.net.

66              PTR     ns.mfreeland.net
66              PTR     mail.mfreeland.net

Here is the 127.0.0.zone:

$TTL 3D
@               IN SOA          ns.mfreeland.net.   matthew.mfreeland.net. (
                                1               ; serial
                                8H              ; refresh
                                2H              ; retry
                                4W              ; expiry
                                1D )            ; minimum

                IN NS           ns.mfreeland.net.
1               IN PTR          localhost.

Here is the mfreeland.net.zone:

$TTL 3D
@       IN      SOA     ns.mfreeland.net. matthew.mfreeland.net. (
                        200307081       ; serial, todays date + todays 
serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
;
                NS      ns              ; Inet Address of name server
                MX      10 mail         ; Primary Mail Exchanger

localhost       A       127.0.0.1

ns              A       65.30.105.66
                MX      10 mail

mail            A       65.30.105.66
                MX      10 mail

Here is the resolv.conf: (note that I had to add the kc.rr.com and it's 
nameservers to get internet up)

search kc.rr.com
nameserver 207.192.213.13
nameserver 207.192.213.22
nameserver 207.192.213.13
search mfreeland.net
nameserver 65.30.105.66

Here is the /etc/hosts:

# IP-Address  Full-Qualified-Hostname  Short-Hostname
127.0.0.1       localhost
# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback
fe00::0         ipv6-localnet
ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
127.0.0.2       GeorgeVIII.mfreeland.net        GeorgeVIII

Thanks so much for your help... I'm getting so frustrated with this mess.

PS:  a whois query shows that mfreeland.net nameservers are 1: 
ns.mfreeland.net and 2: dns.secondary.org, so that's not the problem.

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail




More information about the Kclug mailing list