Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-22-2008, 05:46 PM   #1
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, how can I configure the dns client to allow me to type only "ping fee" for

I already put

Code:     fie
in hosts, after localhost.
Old 05-22-2008, 07:59 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

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
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration