hostname issue

Discussion in 'Site & Server Administration' started by deriklogov, Sep 9, 2009.

  1. #1
    I got dedicated server
    very strange,when I run

    host ipadress

    I should get hostname of server, but I am getting some different domain which is not even my

    can anyone explain where that information store and how to change it ?

    thank you
     
    deriklogov, Sep 9, 2009 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    what flavour of linux you are using?

    hostname newhost.domain.com

    To keep the new hostname between restarts edit /etc/sysconfig/network, and change the hostname there. (redhat/fedora specific)

    Also its a good idea to check /etc/hosts, it can contain the old hostname, change/delete it.

    Please try it

    Regards

    Alex
     
    kmap, Sep 9, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Hey,

    Thank you for reply
    I check both of those files and they got right name in it, so its something else
     
    deriklogov, Sep 9, 2009 IP
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    the command you are using is for reverse lookup

    Reverse Lookup: host ipaddress

    i believe you have some dns issue

    do you have correct DNS setup on server.

    Also have you added any domain to server and is it opening

    are you running nameservers?

    Regards

    Alex
     
    kmap, Sep 9, 2009 IP
  5. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #5
    to be more specific:

    root@fast [/etc]# hostname
    fast.listlux.com

    root@fast [/etc]# host fast.listlux.com
    fast.listlux.com has address 66.90.101.34
    fast.listlux.com mail is handled by 0 66.90.101.34.listlux.com.


    root@fast [/etc]# host 66.90.101.34
    34.101.90.66.in-addr.arpa domain name pointer anhost.net.
     
    deriklogov, Sep 9, 2009 IP
  6. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #6
    I am not running nameservers, I am using name servers from godaddy, might be issue with DNS, but I can not see IP pointed to that domain
     
    deriklogov, Sep 9, 2009 IP
  7. atbnet

    atbnet Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Looks like you need to setup an rDNS record. Ask your provider to add one for your server.
     
    atbnet, Sep 9, 2009 IP