LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help need to add multiple hostname (https://www.linuxquestions.org/questions/linux-newbie-8/help-need-to-add-multiple-hostname-809243/)

charus 05-21-2010 03:07 AM

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

alli_yas 05-21-2010 03:30 AM

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


All times are GMT -5. The time now is 12:52 AM.