View previous topic :: View next topic |
Author |
Message |
Golbez Tux's lil' helper
Joined: 03 May 2004 Posts: 96
|
Posted: Sun May 09, 2004 4:21 pm Post subject: I need some help getting bind to work |
|
|
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 |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun May 09, 2004 5:23 pm Post subject: |
|
|
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 |
|
|
Golbez Tux's lil' helper
Joined: 03 May 2004 Posts: 96
|
Posted: Sun May 09, 2004 6:57 pm Post subject: |
|
|
didnt work, its like its not starting, where is the log file at? |
|
Back to top |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Mon May 10, 2004 2:54 pm Post subject: |
|
|
remove the "listen-on-v6"
whats the error you get ?
the log files are prolly in /var/log/bind ? _________________ linux: #232767 |
|
Back to top |
|
|
ian! Bodhisattva
Joined: 25 Feb 2003 Posts: 3829 Location: Essen, Germany
|
Posted: Mon May 10, 2004 5:00 pm Post subject: |
|
|
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 |
|
|
DaveArb Guru
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Mon May 10, 2004 5:12 pm Post subject: |
|
|
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 |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Mon May 10, 2004 7:13 pm Post subject: |
|
|
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 |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Mon May 10, 2004 9:07 pm Post subject: |
|
|
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 |
|
|
|