LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-10-2010, 08:15 AM   #1
mailingadnan
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
please check config for DNS issue.


computer network card ip 10.10.10.1/24 it is resolving DNS for 10.10.10.x network but for 172.16.10.x/24 network it is not resolving any IP address. Even from any machines on 172.16.10.x/24 network i can ping 10.10.10.1(ns1.mydomain.com) and 10.10.10.2 (ns2.mydomain.com) nameservers. Please help or give any clue which might be helpful. Thanks a lot for your advise.

Named.conf file
=====================================================================
zone "." {
type hint;
file "/etc/bind/local.root";
};

zone "localhost" {
type master;
file "/etc/bind/local.local";
allow-query { any; };
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/local.127";
allow-query { any; };
};

zone "mydomain.com" {
type master;
file "/etc/bind/local.mydomain.com";
allow-transfer { 10.10.10.2; };
};

zone "10.10.10.in-addr.arpa" {
type master;
file "/etc/bind/local.10.10.10";
allow-query { any; };
};


zone "10.16.172.in-addr.arpa" {
type master;
file "/etc/bind/local.10.16.172";
allow-query { any; };
};
====================================================================
local.10.16.172 file

$TTL 86400
@ IN SOA ns1.mydomain.com. root.mydomain.com. (
2010040606 ; serial
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.mydomain.com.
NS ns2.mydomain.com.
=====================================================================

bunny:~# dig -x 172.16.10.1

; <<>> DiG 9.5.1-P3 <<>> -x 172.16.10.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 21678
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;10.16.172.in-addr.arpa. IN PTR

;; AUTHORITY SECTION:
10.16.172.in-addr.arpa. 86400 IN SOA ns1.mydoamin.com. root.mydomain.com. 2010040606 28800 7200 604800 86400

;; Query time: 0 msec
;; SERVER: 10.10.10.1#53(10.10.10.1)
;; WHEN: Sat Jul 10 22:53:18 2010
;; MSG SIZE rcvd: 102
 
Old 07-10-2010, 09:04 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 21678
This answer (NXDOMAIN) is because you don't have a PTR record for 1.10.16.172.in-addr.arpa in local.10.16.172 zone file. Add
Code:
1    PTR  host.domain.com.
increase serial and reload bind

Regards
 
Old 07-10-2010, 09:25 AM   #3
mailingadnan
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your reply that dig output is from NS, client machine(172.16.10.1) is windowsxp machine which is not resolving DNS queries but can ping to 10.10.10.1 primary name server. But machines on 10.10.10.x network can resolve DNS queries. I even restarted DNS deamon.
 
Old 07-10-2010, 09:38 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
The answer is from ns1, because you have:
Quote:
;; SERVER: 10.10.10.1#53(10.10.10.1)
Are you sure that boxes at 10.10.10.x can resolve IPs? Because you have no PTR records in the zone file!
Quote:
local.10.16.172 file

$TTL 86400
@ IN SOA ns1.mydomain.com. root.mydomain.com. (
2010040606 ; serial
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.mydomain.com.
NS ns2.mydomain.com.
 
Old 07-10-2010, 06:19 PM   #5
mailingadnan
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, this file is for 172.16.10.x network. box is resolving ip for 10.10.10.x network .. pointer record is added and DNS reloaded. but no luck.
10 PTR ns1.mydomain.com.
11 PTR ns2.mydomain.com.
12 PTR mail.mydomain.com.

Also checked in named.conf.option file.
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
listen-on { any; };
};
 
Old 07-11-2010, 03:01 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Run
Code:
named-checkconf -z
named-checkzone 10.16.172.in-addr.arpa /etc/bind/local.10.16.172
and the following 2 queries from 2 boxes in the appropriate networks and post the output:
Code:
dig -x 172.16.10.10 @10.10.10.1
dig -x 172.16.10.10 @172.16.10.10
 
  


Reply

Tags
dns


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
please check my openvpn config secretlydead Linux - Networking 2 04-17-2010 09:30 AM
Sanity Check DNS Reverse Zone Config navigat0 Linux - Server 2 10-21-2009 11:09 AM
DNS issue - DNS works perfect on server but not on any other computer jtneal Linux - Networking 3 03-15-2008 03:30 PM
dns check outside dns before local reaky Linux - Networking 1 02-22-2004 09:27 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration