Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: BIND problem
PostPosted: Tue Jan 08, 2008 12:26 pm 
Offline
Newbie

Joined: Tue Jan 08, 2008 12:16 pm
Posts: 3
Hi guys,

I've been playing around with BIND and doing quite some reading today to set it up for a domain. I had it working (except RDNS), tried to add some subdomains and broke it. I then removed what I thought I'd added in, and it still won't work; the domain cannot resolve

here's my named.conf file:

Code:
options {
        directory "/var/bind";

        statistics-file "/var/named/named.stats";
        dump-file "/var/named/named.dump";
        zone-statistics yes;

        listen-on-v6 { none; };
        listen-on { 67.18.186.192; };
        listen-on { 67.18.186.193; };

        notify yes; // notify the above IP's when a zone is updated

        pid-file "/var/run/named/named.pid";

        transfer-format many-answers;
};

zone "crispycrisp.org" IN {
        type master;
        file "personal/crispycrisp.org";
};

zone "186.18.67.in-addr.arpa" IN {
        type master;
        file "reverse/186.18.67.in-addr.arpa.zone";
};

zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
};


here's my crispycrisp.zone file:

Code:
$TTL 600
; crispycrisp.org
@       IN      SOA     67.18.186.192.      admin.crispycrisp.org. (
                        2008010802      ; serial number YYMMDDNN
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400           ; Min TTL
                        )

@       IN      SOA     67.18.186.193.      admin.crispycrisp.org. (
                        2008010802      ; serial number YYMMDDNN
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400           ; Min TTL
                        )

                NS      67.18.186.192.
                NS      67.18.186.193.

                MX      10 mail.crispycrisp.org.
@                       IN      A       67.18.186.192
@                       IN      A       67.18.186.193
$ORIGIN crispycrisp.org

; host records
localhost               IN      A       127.0.0.1
mail                    IN      A       67.18.186.192
*                       IN      A       67.18.186.192


Any idea what I've done wrong? I don't see what is wrong with it.
Thanks :)


Top
   
 Post subject:
PostPosted: Tue Jan 08, 2008 1:08 pm 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
1) A domain can only have one SOA record. You have two. Details

2) The MNAME should be the name of your primary DNS server, not an IP address. The page I referenced explains about the dot on the end. Also, an IP address does not end in a dot.

3) NS records should be a FQDN Details

4) Your 186.18.67.in-addr.arpa reverse zone won't do anything if ThePlanet probably isn't delegating rDNS to you. You need to set up the forward DNS correctly then use the Linode Platform Manager to set up rDNS.

BTW: Did you do a find/replace on the domain name for privacy or is that really the domain you are trying to set up? Because it's not registered yet. I have avoided the urge to register it and sell it to you for $1,000 thus far.


Top
   
 Post subject:
PostPosted: Tue Jan 08, 2008 5:00 pm 
Offline
Newbie

Joined: Tue Jan 08, 2008 12:16 pm
Posts: 3
Thanks for the reply irgeek. Right, again I've had it working, but seem to have managed to break it again. I do own this domain, I bought it the other day, and my registrar has the entire domain pointing at the relevant linode nameservers for my IP. I'm not sure if I got everything from your reply, I think I did, here's my new zone file:
Code:
$TTL 600
; crispycrisp.org
@        IN      SOA    alpha.crispycrisp.org.  admin.crispycrisp.org. (
                        2008010802      ; serial number YYMMDDNN
                        28800           ; Refresh
                        7200            ; Retry
                        864000          ; Expire
                        86400           ; Min TTL
                        )

                        IN      NS        alpha.crispycrisp.org.
                        IN      NS        beta.crispycrisp.org.

                        IN      MX 10   mail.crispycrisp.org.

                        IN      A          67.18.186.192
                        IN      A          67.18.186.193
$ORIGIN crispycrisp.org

; host records
localhost               IN      A       127.0.0.1
alpha                   IN      A       67.18.186.192
beta                    IN      A       67.18.186.193
mail                    IN      A       67.18.186.192
*                       IN      A       67.18.186.192


And thanks for the info RE: RDNS, I've worked that out, but I need my 2 nameservers and DNS working before I can sort that out, so I've removed the file and the lines from named.conf that deal with that. Any help on the above?


Top
   
 Post subject:
PostPosted: Wed Jan 09, 2008 3:30 am 
Offline
Newbie

Joined: Tue Jan 08, 2008 12:16 pm
Posts: 3
Update: I have it all up and running now. Thanks to someone from the IRC channel who's name escapes me (sorry if you read this =P), I missed the trailing . in $ORIGIN oh well.
Just waiting for my RDNS to refresh, hopefully that will go smoothly. Thanks for your help =)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group