LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2006, 12:31 AM   #1
crazee64
LQ Newbie
 
Registered: Mar 2006
Location: Australia
Distribution: FC4 & FC5-Various Kernels & Vector Linux
Posts: 11

Rep: Reputation: 0
Question DNS Problem - Can't resolve LAN IP's to names


Hi All,

My problem is simple - I have a server on my LAN running named and using that machine I can resolve names to addresses on my local LAN and outside, and resolve outside IP's back to names. But I cannot resolve IP's in the range 192.168.0.X back to names on the LAN:

Code:
[root@obelix named]# host asterix
asterix.doh.net.au has address 192.168.0.4

[root@obelix named]# host 192.168.0.4
Host 4.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)
So I have a problem. I have tried debugging this for a while with no luck - usually this is not so hard but I'm stumped as to why this isn't working now. If anyone can help me I would be very grateful. My named.comf is nothing unusual:

Code:
[root@obelix named]# cat /etc/named.conf
options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        forwarders { 144.140.70.29; 144.140.71.29; };
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localdomain" IN {
        type master;
        file "localdomain.zone";
        allow-update { none; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "doh.net.au" IN {
        type master;
        notify no;
        file "doh.zone";
        allow-update {none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "localhost.rev";
        allow-update { none; };
};

zone "0.168.192.in-arpa" IN {
        type master;
        notify no;
        file "192.168.0.rev";
        allow-update {none; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
};

include "/etc/rndc.key";
And the relevant reverse zone file:
Code:
; Brian Grasby 08/07/2005
; Start of Authority (SOA) records
$TTL 345600
@       IN      SOA     obelix.doh.net.au. briang.doh.net.au. (
                        200607121 ; Serial
                        86400     ; Refresh
                        7200      ; Retry
                        2592000   ; Expire
                        345600 )  ; Minimum

; Nameserver (NS) records
                NS      obelix.doh.net.au.

; Reverse lookup pointers to names
2               PTR     travel-laptop.doh.net.au.
3               PTR     michelle.doh.net.au.
4               PTR     asterix.doh.net.au.
5               PTR     office.doh.net.au.
6               PTR     cacophonix.doh.net.au.
7               PTR     obelix.doh.net.au.
8               PTR     bryan.doh.net.au.
 
Old 07-12-2006, 02:57 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
Quote:
zone "0.168.192.in-arpa" IN {
You have an error in your named.conf. The above line should be:
Code:
zone "0.168.192.in-addr.arpa" {
BTW you don't need tha "IN" when defining a zone
 
Old 07-12-2006, 04:32 AM   #3
crazee64
LQ Newbie
 
Registered: Mar 2006
Location: Australia
Distribution: FC4 & FC5-Various Kernels & Vector Linux
Posts: 11

Original Poster
Rep: Reputation: 0
Now that is what happens when you stare at the same problem for too long! I can't believe I missed that Thanks

I must have checked that line 10 times and assumed every time that it was the same as my other zones.
 
Old 07-12-2006, 04:26 PM   #4
ashintoms
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
In

all the IN in the named.conf should be removed for the nslookup to
function

Regards
Ashish
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to resolve DNS names after upgrade to FC4 gtrask Linux - Networking 1 01-29-2006 12:09 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Networking 6 08-28-2005 03:35 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 03:29 PM
DNS will not resolve non-domain qualified names arobinson74 Linux - Networking 2 10-25-2004 04:13 PM
how to resolve names to IPs WITHOUT /etc/hosts or DNS iggymac Linux - Networking 11 11-13-2001 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration