Download your favorite Linux distribution at LQ ISO.
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-21-2010, 04:07 AM   #1
LQ Newbie
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Help need to add multiple hostname

hello all,

I am having problem resolving hostname.

i had 1 server and its hostname is resolving fine.

i purchased 1 vps and its hostname isnt resolving.

for server 1 say hostname is

and for vps i add

and when i ping my i get Host Unknown error.

please help me do i add Hostname and make it resolve in VPS.

i want to use hostname like

Thank you
Old 05-21-2010, 04:30 AM   #2
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92

1. What OS is your "server 1" and "vps" running?

2. What do you mean by vps? Are you talking about a virtual private server?

3. Please post the output of the following commands; and run them on both machines:

# ifconfig -a

# more /etc/hosts


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
add hostname and/or username in ubuntu-gnome alaios Ubuntu 2 02-26-2009 09:31 AM
Single hostname for multiple networks Padawan.AVT Linux - Server 4 11-06-2007 06:03 AM
postfix hostname parameter for multiple domains? paddyjoy Linux - Server 3 09-21-2006 05:58 PM
Hostname Issue & Unable to Grab IP Add nistelrooy Linux - Networking 3 11-23-2004 01:59 PM
IPChains hostname has multiple IPs is resolves to? Ionized Linux - Networking 1 07-30-2002 02:03 AM > Forums > Linux Forums > Linux - Newbie

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

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