BIND problem

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:

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:

$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 :)

3 Replies

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.

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:

$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?

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 =)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct