Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bind DNS not working :(
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
DaMightyWhightyMan
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 116

PostPosted: Thu Nov 09, 2006 2:43 am    Post subject: Bind DNS not working :( Reply with quote

I have a clean install. It's one box, has 5 IPs assigned to it 1.2.3.130 - 134. I'm trying to setup a domain name.

For this post the domain name is dummy.net. The domain's name servers are ns1.dummy.net and ns2.dummy.net. The registrar already has things setup, I used to use it for name servers on a different box.

There's no firewall running so there shouldn't be only blocked ports.

an nslookup of dummy.net gives me a SERVFAIL

an nslookup of 1.2.3.130 gives me a non-authoritative answear of ns1.dummy.net

Any help would be great.

/etc/bind/named.conf.local
Code:

zone "dummy.net" {
        type master;
        file "/etc/bind/dummy.net.hosts";
        };



/etc/bind/dummy.net.hosts
Code:

$ttl 38400
dummy.net.       IN      SOA     ns1.dummy.net. mastah.dummy.net. (
                        1162706568
                        10800
                        3600
                        604800
                        38400 )
 dummy.net.                IN NS   ns1.dummy.net.

 dummy.net.                IN NS   ns2.dummy.net.

 dummy.net.                IN A    1.2.3.130

 ns1.dummy.net.            IN A    1.2.3.130

 ns2.dummy.net.            IN A    1.2.3.131


all other configs are just the default ones, nothing has been changed in them.
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Thu Nov 09, 2006 6:27 am    Post subject: Re: Bind DNS not working :( Reply with quote

Does the service start without errors?

/etc/init.d/namedstart
??
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Thu Nov 09, 2006 6:30 am    Post subject: Reply with quote

Are there any servers in your /etc/resolv.conf file?

Try
Quote:
nslookup dummy.net localhost
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Thu Nov 09, 2006 6:42 am    Post subject: Reply with quote

If scripting bind zonefiles doesn't suit your tastes I've found using djbdns alongside vegadns to be a much more tolerable solution. vegadns is available in the webapps-experimental portage overlay. vegadns being a php based web app can also provide tiered security allowing users to manage their own hosted domains saving a LOT of time required for administration staff to manage service tickets for zonefile updates. There's a perl based replication script available called sql2data which pulls data from vegadns mysql db and populates the tinydns zonefile. safer and less work to configure than using axfrdns. I usually run it crontabbed every 10 minutes on my setup. We have a few hundred domains running with this setup and rarely have to attend to users requirements for any admin side intervention.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
DaMightyWhightyMan
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 116

PostPosted: Thu Nov 09, 2006 9:32 pm    Post subject: Re: Bind DNS not working :( Reply with quote

bjlockie wrote:
Does the service start without errors?

/etc/init.d/namedstart
??


no errors
Back to top
View user's profile Send private message
DaMightyWhightyMan
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 116

PostPosted: Thu Nov 09, 2006 9:34 pm    Post subject: Reply with quote

bjlockie wrote:
Are there any servers in your /etc/resolv.conf file?

Try
Quote:
nslookup dummy.net localhost


/etc/resolv.conf
Code:

search
nameserver 216.234.234.30


nslookup dummy.net localhost still gives me a SERVFAIL
Back to top
View user's profile Send private message
DaMightyWhightyMan
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2004
Posts: 116

PostPosted: Thu Nov 09, 2006 9:34 pm    Post subject: Reply with quote

ali3nx wrote:
If scripting bind zonefiles doesn't suit your tastes I've found using djbdns alongside vegadns to be a much more tolerable solution. vegadns is available in the webapps-experimental portage overlay. vegadns being a php based web app can also provide tiered security allowing users to manage their own hosted domains saving a LOT of time required for administration staff to manage service tickets for zonefile updates. There's a perl based replication script available called sql2data which pulls data from vegadns mysql db and populates the tinydns zonefile. safer and less work to configure than using axfrdns. I usually run it crontabbed every 10 minutes on my setup. We have a few hundred domains running with this setup and rarely have to attend to users requirements for any admin side intervention.


I'll probably switch if I can't get bind9 to work for me, thanks for the tip.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri Nov 10, 2006 11:30 am    Post subject: Reply with quote

you can get bind to log more information by setting -d 255 in the /etc/conf.d/named file. it will output data to /var/named/named.run

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
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