Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need some help getting bind to work
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
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 4:21 pm    Post subject: I need some help getting bind to work Reply with quote

Here are all my files but I cant get it running for some reason, anytime I do a lookup off 127.0.0.1 it times out :(

/etc/bind/named.conf:
Code:

options {
        directory "/var/bind";
        listen-on-v6 { none; };
        listen-on { 127.0.0.1; 67.166.219.7; };
        pid-file "/var/run/named/named.pid";
};
zone "." IN {
        type hint;
        file "named.ca";
};
zone "219.166.67.in-addr.arpa" IN {
        type master;
        file "pri/219.166.67.zone";
        allow-update { none; };
        notify no;
};
zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};
zone  "imbatman.net" {
        type master;
        file "pri/imbatman.net.zone";
        allow-transfer { 69.93.167.126; }
};
zone  "iknowkungfu.org" {
        type master;
        file "pri/iknowkungfu.org.zone";
        allow-transfer { 69.93.167.126; }
};

/var/bind/pri/219.166.67.zone:
Code:

$TTL    3600
@       IN      SOA     batcave.imbatman.net. root.batcave.imbatman.net. (
                        20040508 ; serial
                        3600 ; refresh
                        900 ; retry
                        3600000 ; expire
                        3600 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
7       IN      PTR     batcave.imbatman.net.

/var/bind/pri/127.zone:
Code:

$ORIGIN 127.in-addr.arpa
$TTL    3600
@       1D IN   SOA     batcave.imbatman.net. root.batcave.imbatman.net. (
                        20040508 ; serial
                        3600 ; refresh
                        900 ; retry
                        3600000 ; expire
                        3600 ; ttl
                        )


        1D  IN  NS      batcave.imbatman.net.
*       1D  IN  PTR     batcave.imbatman.net.

/var/bind/pri/imbatman.net.zone:
Code:

@       IN      SOA     batcave.imbatman.net.  root.imbatman.net. (
                        20040508 ; serial
                        10800; refresh
                        3600 ; retry
                        604800 ; expire
                        43200 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
        IN      NS      chatterbox.simnets.com.
@       IN      MX  0   batcave.imbatman.net.
batcave IN      A       67.166.219.7
@       IN      A       67.166.219.7
www     IN      CNAME   imbatman.net.       
mail    IN      CNAME   batcave.imbatman.net.
ftp     IN      CNAME   batcave.imbatman.net.
webmail IN      CNAME   batcave.imbatman.net.

/var/bind/pri/iknowkungfu.org.zone:
Code:

@       IN      SOA     batcave.imbatman.net.  root.imbatman.net. (
                        20040508 ; serial
                        10800; refresh
                        3600 ; retry
                        604800 ; expire
                        43200 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
        IN      NS      chatterbox.simnets.com.
@       IN      MX  0   batcave.imbatman.net.
@       IN      A       67.166.219.7
www     IN      CNAME   batcave.imbatman.net.       
mail    IN      CNAME   batcave.imbatman.net.
ftp     IN      CNAME   batcave.imbatman.net.
webmail IN      CNAME   batcave.imbatman.net.


Anyone see a prob?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun May 09, 2004 5:23 pm    Post subject: Reply with quote

Hi, try this:

Code:

listen-on { any; };


and maybe you can add a ACL too makes things easy :)

Code:

acl my-slaves { 222.222.222.222;
                        333.333.333.333;
                         444.444.444.444; };

allow transfer { my-slaves};



:)
_________________
linux: #232767
Back to top
View user's profile Send private message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 6:57 pm    Post subject: Reply with quote

didnt work, its like its not starting, where is the log file at?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Mon May 10, 2004 2:54 pm    Post subject: Reply with quote

remove the "listen-on-v6"

whats the error you get ?

the log files are prolly in /var/log/bind ?
_________________
linux: #232767
Back to top
View user's profile Send private message
ian!
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Mon May 10, 2004 5:00 pm    Post subject: Reply with quote

Moved from 'DT&T' to 'N&S'.
_________________
"To have a successful open source project, you need to be at least somewhat successful at getting along with people." -- Daniel Robbins
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Mon May 10, 2004 5:12 pm    Post subject: Reply with quote

Mine logs to /var/log/daemon.log. Pretty sure I didn't set that, so it's likely the default.

In file /var/bind/pri/127.zone, line 1, the line should end with a dot (.), "$ORIGIN 127.in-addr.arpa."

Everything else eyeballs OK.

Dave
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Mon May 10, 2004 7:13 pm    Post subject: Reply with quote

Do you need to add an origin line to the top of your zone files?

Like the one you have in your 127.zone file.
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Mon May 10, 2004 9:07 pm    Post subject: Reply with quote

DaveArb wrote:
Mine logs to /var/log/daemon.log. Pretty sure I didn't set that, so it's likely the default.

In file /var/bind/pri/127.zone, line 1, the line should end with a dot (.), "$ORIGIN 127.in-addr.arpa."

Everything else eyeballs OK.

Dave


i missed that one :/ thats correct .
_________________
linux: #232767
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