View previous topic :: View next topic |
Author |
Message |
unaos n00b
Joined: 06 Apr 2006 Posts: 64 Location: brovary,UA
|
Posted: Wed Oct 25, 2006 1:21 pm Post subject: reverse lookup dont work |
|
|
Hi! Some troubles with bind, all is ok but cant do a reverse lookup
nslookup 10.10.0.5
Server: 10.10.0.1
Address: 10.10.0.1#53
*** Can't find 5.0.10.10.in-addr.arpa.: No answer
something go wrong
named.conf
Code: |
options {
directory "/var/bind";
statistics-file "/var/log/bind/named.stats";
dump-file "/var/log/bind/named.dump";
zone-statistics yes;
allow-recursion { 127.0.0.1; 10.10.0.0/24; };
allow-transfer { 127.0.0.1; 10.10.0.0/24; };
notify yes;
transfer-format many-answers;
//forward first;
//forwarders {
// 194.93.161.1;
// };
listen-on { 127.0.0.1; 10.10.0.1; };
allow-query {
127.0.0.1;
10.10.0.0/24;
};
query-source address * port 53;
pid-file "/var/run/named/named.pid";
};
//zone "COM" { type delegation-only; };
//zone "NET" { type delegation-only; };
include "/etc/bind/conf/logging.conf";
include "/etc/bind/conf/acls.conf";
include "/etc/bind/conf/domain.com.conf";
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
|
and
included file "/etc/bind/conf/domain.com.conf"
Code: |
zone "talisman.ua" IN {
type master;
file "pri/talisman.ua-internal.zone";
allow-transfer { 10.10.0.1; 127.0.0.1; 10.10.0.7; };
};
zone "0.10.10.in-addr.arpa" {
type master;
file "pri/0.10.10.zone";
allow-transfer { 10.10.0.1; 127.0.0.1; 10.10.0.7; };
};
|
it has views, but i commented em out for debugging
zone file
Code: |
$TTL 1W
@ IN SOA ns.talisman.ua. admin.talisman.ua. (
2006102501 ; Serial
86400 ; Refresh
7200 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.talisman.ua.
IN A 10.10.0.1
IN MX 10 mx.domain.com.
;
user-0 IN A 10.10.0.0
caps IN A 10.10.0.1
mx IN CNAME caps
ns IN CNAME caps
user-02 IN A 10.10.0.2
buran IN A 10.10.0.3
talsi.buran IN CNAME buran
talisman.buran IN CNAME buran
polimer.buran IN CNAME buran
www1 IN A 10.10.0.4
fileserver IN A 10.10.0.5
user-06 IN A 10.10.0.6
sysadm IN A 10.10.0.7
dron IN A 10.10.0.8
|
with reverse
Code: |
$TTL 1W
0.10.10.in-addr.arpa. IN SOA ns.talisman.ua. admin.talisman.ua. (
2006102502 ; Serial
86400 ; Refresh
7200 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
;
10.10.0.100 IN PTR talisman
10.10.0.0 IN PTR user-0
10.10.0.1 IN PTR caps
10.10.0.2 IN PTR user-02
10.10.0.3 IN PTR buran
10.10.0.4 IN PTR www1
10.10.0.5 IN PTR fileserver
10.10.0.6 IN PTR user-06
10.10.0.7 IN PTR sysadm
10.10.0.8 IN PTR dron
|
_________________ house of mystic lies |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Wed Oct 25, 2006 2:58 pm Post subject: Re: reverse lookup dont work |
|
|
Try this instead: Code: | $TTL 1W
$ORIGIN 0.10.10.in-addr.arpa.
@ IN SOA ns.talisman.ua. admin.talisman.ua. (
2006102503 ; Serial
86400 ; Refresh
7200 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
;
100 IN PTR talisman.talisman.ua.
0 IN PTR user-0.talisman.ua.
1 IN PTR caps.talisman.ua.
2 IN PTR user-02.talisman.ua.
3 IN PTR buran.talisman.ua.
4 IN PTR www1.talisman.ua.
5 IN PTR fileserver.talisman.ua.
6 IN PTR user-06.talisman.ua.
7 IN PTR sysadm.talisman.ua.
8 IN PTR dron.talisman.ua. | Zone files without $ORIGIN are much more confusing. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|