Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]bind issues with domain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Snyke
n00b
n00b


Joined: 01 Nov 2006
Posts: 37

PostPosted: Mon Jan 15, 2007 3:32 pm    Post subject: [SOLVED]bind issues with domain Reply with quote

Hi all,

I've run into quiet some trouble here. I'm using my own server to serve my mail server, my web server, and some more. Problem is that after restarting the named the domain is no longer served.
When testing the domain from the registrar he tells me the following:
Code:
Failures
Test: Error performing delegation check
==> generic

Ok, so now I checked, and double checked the configuration files:
/etc/bind/named.conf
Code:
options {
        directory "/var/bind";

        // if you have problems and are behind a firewall:
        //query-source address * port 53;
        pid-file "/var/run/named/named.pid";
};

// Briefly, a zone which has been declared delegation-only will be effectively
// limited to containing NS RRs for subdomains, but no actual data beyond its
// own apex (for example, its SOA RR and apex NS RRset). This can be used to
// filter out "wildcard" or "synthesized" data from NAT boxes or from
// authoritative name servers whose undelegated (in-zone) data is of no
// interest.
// See http://www.isc.org/products/BIND/delegation-only.html for more info

zone "." IN {
      type hint;
      file "named.ca";
};

zone "ccc.bbb.aaa.in-addr.arpa" IN {
        type master;
        file "pri/ccc.bbb.aaa.zone";
        allow-update { none; };
        notify no;
};

And the respective zone configuration:
/etc/bind/pri/ccc.bbb.aaa.zone
Code:
$TTL    600
@       IN      SOA     dns1.xxx.ch.  root.xxx.ch. (
                        200403081
                        8H
                        2H
                        4W
                        1D
                        )

                NS      dns1.xxx.ch.

178             PTR     ssh.xxx.ch.
179             PTR     www.xxx.ch.
181             PTR     mail.xxx.ch.
181             PTR     dns1.xxx.ch.
182             PTR     dns2.xxx.ch.
182             PTR     db.xxx.ch.

The daemon starts without errors and it works also nicely when not trying to resolve my own domain. But as soon as I try to resolve my own domain I get a SERVFAIL and in /var/log/messages I see some complaints about lame server resolving.

Please please, help me, I'm stuck :oops:


Last edited by Snyke on Mon Jan 15, 2007 4:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
xming
Guru
Guru


Joined: 02 Jul 2002
Posts: 441

PostPosted: Mon Jan 15, 2007 3:36 pm    Post subject: Reply with quote

You only have a reverse zone, are you sure this is what you want? If you need normal DNS (hostname -> IP) then you need to define forward zones.
_________________
http://wojia.be
Back to top
View user's profile Send private message
Snyke
n00b
n00b


Joined: 01 Nov 2006
Posts: 37

PostPosted: Mon Jan 15, 2007 3:37 pm    Post subject: Reply with quote

Uhm reverse DNS means mapping from ip to domain name right? No that's not what I was trying to do. So how do I change it to become a forward configuration?
Back to top
View user's profile Send private message
Snyke
n00b
n00b


Joined: 01 Nov 2006
Posts: 37

PostPosted: Mon Jan 15, 2007 3:55 pm    Post subject: Reply with quote

Why oh why do I always bang my head against a wall, and then as soon as I prove myself to be completely clueless, by posting here, I start finding the answer by myself? In other words I fixed it ^^
The trick, xming pointed out, is to not only configure a reverse lookup:
Code:

$TTL 3D
@       IN      SOA     dns1.xxx.ch.  root.xxx.ch. (
                        200403081
                        8H
                        2H
                        4W             
                        1D )           
;
                NS      dns1.xxx.ch.
                MX      10 mail.xxx.ch.       
;
localhost       A       127.0.0.1
s1          MX      10 mail
s1          A       ddd.ccc.bbb.aaa
ssh             A       ddd.ccc.bbb.aaa
www             A       ddd.ccc.bbb.aaa
mail            A       ddd.ccc.bbb.aaa
mail            MX      10 mail
dns1            A       ddd.ccc.bbb.aaa
dns2            A       ddd.ccc.bbb.aaa
db              A       ddd.ccc.bbb.aaa

Ok then, SOLVED ^^
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum