Skip to main content

Invalid hostname even though it is valid

Comments

5 comments

  • kernow
    After setting the fqdn in WHM Change hostname, check that an 'A' record exists for the servername in WHM>>>DNS functions
    0
  • cPanelMichael
    Hello, Please post the output from the following command:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
    Thank you.
    0
  • mattin
    Hello Michael, here is output
    /etc/redhat-release:CentOS Linux release 7.2.1511 (Core) /usr/local/cpanel/version:11.58.0.19 /var/cpanel/envtype:virtuozzo CPANEL=release
    And here how it looks after restart:
    root@server [/]# hostname server root@server [/]# hostname -f server.domain.com
    When I additionally change hostname via WHM admin then both output are server.domain.com
    0
  • mattin
    After setting the fqdn in WHM Change hostname, check that an 'A' record exists for the servername in WHM>>>DNS functions

    DNS records are always ok. It's just exim/smtp mail server, it will use only hostname and not hostname -fqdn when sending emails, which result in undeliverable messages.
    0
  • cPanelMichael
    /var/cpanel/envtype:virtuozzo

    I already ask about provider about this, and they tell me that server has valid fqdn already set, and they are true, when I put hostname -f I get full server.domain.com. Just hostname return only "server". Which is valid behaviour.

    Could you contact your provider again and have them verify the hostname is properly configured? The information you provided suggests the wrong hostname is stored somewhere on the VPS hardware node or as part of the configuration file for the VPS. Thank you.
    0

Please sign in to leave a comment.