Find the answer to your Linux question:
Results 1 to 6 of 6
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 server1 say ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    4

    Exclamation Adding Additional Hostname to Another Server

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

    i want both server to have common domain name but diff hostname.


    thank you


    Thank you

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    I dont use vps, but in general you need to configure your/your provider´s DNS.
    So that server2.domain.com points to a IP you want it to be.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    4
    see when i type command "hostname" in shell ( for server2 )

    i get reply "server2.domain.com"

    and i ping server2.domain.com from server2 shell i get my server's ip.

    but when i ping from my home computer to -> server2 i get Host unknown

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    - Is there a DNServer set up for your domain?
    - Is it an offical DNS (aka registered Domain + public DNS) or a internal DNS?

    In the later case, you need to point your home computer to your internal DNS
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    May 2010
    Posts
    4
    Yes its setup for server1.domain.com and its resolving fine.
    Name Servers are Setup on server1.domain.com.
    and Using Internal DNS.

    but in Server2.domain.com i purchased vps and i gave provider the hostname i wanted and thats it.Do i need to do something more to make it resolve?

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    If I understand correct, then your provider operates the DNS

    Find out which DNS it is and do this
    (replacing server2.domain.com and dnserver.provider.com with your actual hostnames)
    Code:
    host server2.domain.com dnserver.provider.com
    It should return a IP or at least a CNAME
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...