LinuxQuestions.org
Review your favorite Linux distribution.
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 05-22-2008, 05:46 PM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
How to configure so I don't need to type domain name or FQDN for same domain hosts?


If I'm fie.foo.com, how can I configure the dns client to allow me to type only "ping fee" for fee.foo.com?

I already put

Code:
127.0.1.1       fie.foo.com     fie
in hosts, after 127.0.0.1 localhost.
 
Old 05-22-2008, 07:59 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 404

Rep: Reputation: 35
You don't say what distribution you are using, so the file might be somewhere else, but what you need is to edit /etc/resolv.conf, and include the line
Code:
search fie.foo.com
This file is used by the name resolver library routines to turn a DNS name into an IP address. The search string will be appended to any DNS name that does not contain a dot in it. For a fuller explanation, there is a manpage for resolv.conf that explains all the options that can go into that file.
 
  


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
login error re domain in etc/hosts rhipps Fedora 6 07-02-2007 07:36 AM
nagios + virtual hosts = How to keep it to one domain neocontrol Linux - Server 2 05-30-2007 01:33 AM
Apache2 Name-based Virtual Hosts Problem with .org domain! phoenix09 Linux - Software 18 09-19-2006 04:23 AM
Windows Domain type of machine security Repentant_MCSE Linux - Networking 1 02-12-2006 07:21 PM
Hosts from your domain are attacking our server gomez Linux - Networking 6 01-03-2005 12:05 PM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration