LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-14-2017, 04:57 AM   #1
Ankit yadav
LQ Newbie
 
Registered: Jun 2017
Posts: 22

Rep: Reputation: Disabled
nslookup, domain issue


I found that while I nslookup my dns server from one of client, It doesn't nslookup with hostname while it does with FQDN.

But it works all good when I try to nslookup other client.

I have entered "search domainname" in resolv.conf.

Can any one tell reason. Is it like that itself or somewhere I am missing something.

Attaching screenshot.
Attached Thumbnails
Click image for larger version

Name:	ns.PNG
Views:	15
Size:	56.5 KB
ID:	25700  
 
Old 08-14-2017, 06:34 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 33
Posts: 3,604

Rep: Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031Reputation: 1031
You have two domains example.com and centbox1.example.com. If ns1 is authoritative for both then they both need to have zone files.
 
Old 08-14-2017, 07:22 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,871

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
Quote:
Originally Posted by Ankit yadav View Post
I found that while I nslookup my dns server from one of client, It doesn't nslookup with hostname while it does with FQDN.

But it works all good when I try to nslookup other client.

I have entered "search domainname" in resolv.conf.

Can any one tell reason. Is it like that itself or somewhere I am missing something.

Attaching screenshot.
Since you have a hostname with a dot, you need to increase ndots in /etc/resolv.conf (the default=1), so the resolver will use the search domain before doing an absolute name lookup even when queried for a hostname containing a dot:
Code:
search example.com
options ndots:2
For more details read the resolv.conf manpage


Regards
 
1 members found this post helpful.
Old 08-14-2017, 08:24 AM   #4
Ankit yadav
LQ Newbie
 
Registered: Jun 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
@bathory Thanks for reply. It worked. I have read man pages now.

@smallpod Thanks.Even I have thought to do the same. I will try it also.
 
  


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
[SOLVED] Why nslookup fails for certain domain? postcd Linux - Networking 17 01-07-2014 08:17 AM
[SOLVED] Issue trying to set domain name moodah Linux - Server 1 03-17-2011 08:16 PM
nslookup issue -URGENT help needed kksk Linux - Newbie 6 10-03-2009 08:54 PM
Domain Issue Denisius Linux - Server 7 11-15-2008 04:39 AM
Domain Name Issue Ukee Linux - Networking 3 08-08-2005 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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