dns problem
Hi,
I am using centos6 x86. i have configured named service in that machine and i have some local clients machine which uses named service provided by that machine. i have put an entry for every client machine and for some other location internal servers also but reverse lookup doesn't work only for outside server. Could anyone help please. |
Not enough information.
What is in your named.conf on the DNS server for the reverse zone (arpa.x.x.x usually). What does the reverse zone file contain? Do your clients have the IP of this DNS server in /etc/resolv.conf? Do the client have DNS specified in /etc/nsswitch.conf? |
Quote:
Code:
zone "0.168.192.in-addr.arpa" IN { Code:
[root@GAIDL-5001 ~]# cat /var/named/rev_0.zone Code:
[root@GAIDL-5001 ~]# cat /etc/resolv.conf |
or my 4th question I was talking about nsswitch.conf (usually /etc/nsswitch.conf). This file determines where to lookup certain information and which order to lookup.
Specifically it can have entry for "hosts" such as: hosts: db files nisplus nis dns Or: hosts: files dns The first entry says to search a local database first, then "files" (which would be /etc/hosts for UNIX/Linux), then nisplus, then nis then dns. It will stop once any of those give the answer. The second entry which is more common says to simply first search "files" and if not found search "dns". You'd only have one uncommented "hosts:" line. If "files" is in nsswitch.conf for "hosts:" line verify you don't have 192.168.0.125 in /etc/hosts on the client. From what you originally wrote I'm assuming your forward lookups are working and it is only the reverse that isn't. Can you connect to port 53 on your nameserver from your client servers? Does the name server have itself (or "localhost") in its own resolv.conf. If so does dig -x 192.168.0.125 give the correct value when run on the name server itself? What does the dig -x give when run from the client? Does "dig -x @192.168.50.1 192.168.0.125" give a different value? than the dig without the @192.168.50.1. Given that your nameserver is 192.168.50 should your arpa be 192.168.0 or should it be 192.168.50? That is are you actually trying to resolve 192.168.50.125 rather than 192.168.0.125 as implied by your current arpa zone? |
Quote:
In nsswitch.conf Code:
hosts: files dns Code:
[root@GAIDL-5001 ~]# dig -x 192.168.0.125 Code:
[sachin.davra@GAIDL-5015 Desktop]$ dig -x 192.168.0.125 Code:
[sachin.davra@GAIDL-5015 Desktop]$ dig -x 192.168.50.1 How should correct it? Kindly help. |
What zone file contains the record for GAIDL-5001.gai.net that you got the reverse to work on above? It isn't in the one you previously posted.
|
Quote:
Two of them are working for reverse lookup and forward lookup zone is also working fine but only reverse lookup zone is not working. I rechecked named.conf file and zone file also. every thing is same as for other zone files. GAIDL-5001.gai.net is configured in one of the reverse lookup and forward lookup zone. Please tell me if you require any log info. |
Thanks guys for your time. Actually problem was in permission of zone files. I changed the owner of that zone to named:named which was not working and reloaded the config and zone files. Now it is working fine.
|
All times are GMT -5. The time now is 03:25 PM. |