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 06-03-2011, 01:53 AM   #1
terencewklau
LQ Newbie
 
Registered: May 2011
Posts: 22

Rep: Reputation: 0
Reverse lookup fail for another domain


Hi,

I've got 2 domains:

one.domain.com
two.domain.com

This is how I've configured my resolv.conf file:

search one.domain.com two.domain.com
nameserver 1.2.3.4 #Windows 2008 dns server for one.domain.com
nameserver 1.2.3.5 #Windows 2003 dns server for two.domain.com

When I run the host command, it can resolve machines in one.domain.com using both hostname and ipaddress.

But when I run the host command for machines in two.domain.com, it only works for hostnames but not ip addresses. The result for ip addresses is:

Host 100.3.2.1.in-addr.arpa not found: 3(NXDOMAIN)

Why doesn't it try the 2nd nameserver in the resolv.conf file when resolving by ip adddress? Reverse pointers are configured for each machine in their respective domain dns servers.

O/S is Oracle VM Server 2.2.1 (similar to Red Hat). Kernel is 2.6.18-128.2.1.4.37.el5xen.

Thanks.

Last edited by terencewklau; 06-03-2011 at 03:21 AM.
 
Old 06-03-2011, 06:47 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
Reverse pointers are configured for each machine in their respective domain dns servers.
From your post, I can understand that both domains are in the same 1.2.3.x subnet.
In this case you cannot have 2 dns servers authoritative for different chunks of the same 3.2.1.in-addr.arpa reverse zone*. You need to configure one as a master for the whole reverse zone and the other as slave

*You can split the 3.2.1.in-addr.arpa zone in 2 chunks (in the master dns) and delegate the 2nd chunk (containing the records for the IPs of the 2nd domain) to the 2nd dns server. Unfortunately I don't know how you can do this in a windows dns server, but this bind configuration should let you get the idea.

Regards
 
Old 06-03-2011, 10:17 PM   #3
terencewklau
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: 0
Thanks for your reply. We're in the process of changing our domain name and hence the existence of 2 domains at the moment. While we migrate servers over to the new domain, I was hoping the resolv.conf file would be enough for name resolution (both forward and revers) across both domains in the short term.

The old domain would eventually disappear but in the short term, there will be linux servers in both domains (in a predominantly windows environment). I can create A records and reverse pointers for the linux servers in the new domain's dns server and then both forward and reverse lookups will work.

But I was curious how the resolv.conf file works under the hood (man page says it tries each name server in order but it only worked for name resolution and not by ip).

And if I could just tap your expertise a little further. If I add the dns record in the new domain, for example server1.one.domain.com with its relevant reverse pointer as well, but server1's network config hasn't change. Hostname is still server1.two.domain.com in both /etc/hosts and /etc/sysconfig/network, would there be any issues?

Thanks again.
 
Old 06-04-2011, 03:38 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
But I was curious how the resolv.conf file works under the hood (man page says it tries each name server in order but it only worked for name resolution and not by ip).
It tries each name server in the order they appear in resolv.conf only if there was no response from the previous one. If one nameserver responds with whatever answer, it stops querying them.

Quote:
If I add the dns record in the new domain, for example server1.one.domain.com with its relevant reverse pointer as well, but server1's network config hasn't change. Hostname is still server1.two.domain.com in both /etc/hosts and /etc/sysconfig/network, would there be any issues?
There will be issues for services running locally on server1 (if use of /etc/hosts precedes that of dns) and for other computers in your lan, that also have an entry for server1 in their hosts file.

Regards
 
Old 06-05-2011, 07:39 PM   #5
terencewklau
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: 0
Thanks. We don't have other server entries in the hosts file but I'll keep an eye on them. Cheers.
 
  


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
Reverse-IP Lookup LInxia Linux - Networking 4 05-08-2011 04:31 AM
reverse ip lookup marsques General 1 09-27-2010 12:27 AM
[SOLVED] bind reverse zone; no name with reverse lookup deadeyes Linux - Server 3 10-12-2009 09:54 AM
reverse DNS lookup mimithebrain Linux - Networking 5 06-08-2006 08:28 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM

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

All times are GMT -5. The time now is 02:52 PM.

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