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 05-15-2016, 03:30 PM   #1
ep7network0819
Member
 
Registered: May 2015
Posts: 31

Rep: Reputation: Disabled
DNS Receiving NXDOMAIN


Hi everyone,

I recently made some minor changes to my forward and reverse lookup zones. I deleted old workstations that are no longer on my network.

I only have one master DNS server, and four other servers on the network.

When I type named-checkzone cseproject.net /var/named/forward.test
I receive: zone cseproject.net OK.

When I type named-checkzone cseproject.net /var/named/reverse.test
I receive: zone cseproject.net OK.

I type dig ns1.cseproject.net and I receive no error.

But, when I type dig -x <MyIPaddress>, I receive status: NXDOMAIN.
NXDOMAIN means that a domain does not exist. But, when I type dnsdomainname it shows my domain name cseproject.net. Whats going on, how can I fix this. I should be able to type dig -x <MyIPaddress> and I should receive no error as my status.

How can I fix this issue, or em I making an issue out of nothing?
The domain name isn't available to the Internet, my domain is only available in my intranet. Not sure if that's causing the NXDOMAIN error.

forward zone:
png image is attached.


reverse zone:
png image is attached.

Thanks for taking the time to read this thread.
Attached Thumbnails
Click image for larger version

Name:	dns0.png
Views:	87
Size:	25.0 KB
ID:	21784   Click image for larger version

Name:	dns2.png
Views:	81
Size:	30.7 KB
ID:	21785  
 
Old 05-16-2016, 12:48 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Hi,

From the reverse zone file attached image, I see that you miss the trailing dots in the 4 PTR resords.
You should use:
Code:
<snip>
200 IN PTR ns1.cseproject.net.
201 IN PTR hardian.cseproject.net.
202 IN PTR www.cseproject.net.
203 IN PTR maiil.cseproject.net.
Note also that you you don't need the A records in reverse zone zonefile and the line
Quote:
@ IN PTR cseproject.net
Regrads

Last edited by bathory; 05-16-2016 at 12:51 AM.
 
Old 05-16-2016, 12:30 PM   #3
Ellendhel
Member
 
Registered: Aug 2015
Location: Wilmington, NC
Distribution: Slackware
Posts: 64

Rep: Reputation: 51
Quote:
But, when I type dig -x <MyIPaddress>, I receive status: NXDOMAIN.
NXDOMAIN means that a domain does not exist. But, when I type dnsdomainname it shows my domain name cseproject.net.
dnsdomainname is getting is information from the system itself, so if your host is properly configured you will get the correct domain name, as expected.

dig send a query to one of the DNS servers listed in /etc/resolv.conf. I would recommend to check the content of that file first. On a system running a DNS server, the file should list 127.0.0.1 only.

You can also force dig to query a specific server, for instance a server at the IP address 192.168.1.1:

Code:
dig @192.168.1.1 A www.example.net
 
Old 05-16-2016, 09:45 PM   #4
ep7network0819
Member
 
Registered: May 2015
Posts: 31

Original Poster
Rep: Reputation: Disabled
Hello,

So far, I can successfully run dig @myIP A serverName.cseproject.net and receive no error for status.

I think for now my DNS server is doing its job. I have no DNS issues with other servers on my network.
Going to look into this further!! thanks for everyone's advise.
 
  


Reply

Tags
centos6, dnsbind, dnsserver, lamp


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
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
Postfix DNS MX question.. receiving mail. waskelton4 Linux - Software 4 02-09-2006 03:31 PM
Network client not receiving address of DNS server arohl74 Linux - Networking 1 03-03-2005 06:58 AM
DNS problems - NXDOMAIN damien Linux - Networking 2 09-11-2003 11:08 PM
Nxdomain jayakrishnan Linux - General 2 05-16-2002 04:26 AM

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

All times are GMT -5. The time now is 11:07 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