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 08-14-2017, 05: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:	18
Size:	56.5 KB
ID:	25700  
 
Old 08-14-2017, 07:34 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,260

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
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, 08:22 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,219
Blog Entries: 1

Rep: Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073
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, 09: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 09:17 AM
[SOLVED] Issue trying to set domain name moodah Linux - Server 1 03-17-2011 09:16 PM
nslookup issue -URGENT help needed kksk Linux - Newbie 6 10-03-2009 09:54 PM
Domain Issue Denisius Linux - Server 7 11-15-2008 05:39 AM
Domain Name Issue Ukee Linux - Networking 3 08-08-2005 03:49 AM

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

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