LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2008, 08:54 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
/etc/resolv.conf resolving sub-domains


I have domain names like "mkt.mycompany.com", "hr.mycompany.com" etc. - in my /etc/resolv.conf I put -

search mycompany.com
search mkt.mycompany.com
search hr.mycompany.com

but it is not resolving when I try to ssh. I need to type the FQDN. Is there a way to resolve this issue?

Thanks for any help.
 
Old 02-10-2008, 10:14 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
To begin with, you don't need all of those statements. The only one that would make sense in your case would be 'search mycompany.com'. What that does is tag the mycompany.com onto any short name. So adding something like 'search mkt.mycompany.com' and then typing 'ssh mkt' would actually look for mkt.mkt.mycompany.com.

Beyond that, it should just work. I tested by putting 'search not_your_but_my_company.com' into /etc/resolv.conf, and 'ssh shortname' worked for me. Try it with just one search command, and see if that works.

Peace,
JimBass
 
Old 02-10-2008, 10:29 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try

search mycompany.com mkt.mycompany.com hr.mycompany.com

instead
 
  


Reply



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
problem resolving .local domains cricketjeff Linux - Software 5 04-19-2007 06:13 AM
LXer: Resolving Domains Internally And Externally With Bind9 And Caching Nameserver LXer Syndicated Linux News 0 02-11-2007 08:33 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
Bind not resolving .org domains ggandy Linux - Networking 0 11-23-2004 05:16 PM
no domains resolving ? zeedoo Linux - Networking 3 07-12-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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