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 05-21-2010, 04:07 AM   #1
charus
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 server1.domain.com


and for vps i add server2.domain.com

and when i ping my server2.domain.com i get Host Unknown error.


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


i want to use hostname like server2.domain.com.



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

Rep: Reputation: 92
Hi

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:

Code:
# ifconfig -a
and

Code:
# more /etc/hosts
 
  


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


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration