Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

AWS EC2: hostname reverts to xxxxxx.ec2.internal on boot. Is it a problem?

Discussion in 'Bind/DNS/Nameserver' started by pandalion98, May 2, 2016.

Tags:
  1. pandalion98

    pandalion98 Registered

    Joined:
    Aug 26, 2015
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    General Santos
    cPanel Access Level:
    Root Administrator
    I've tried different methods to make the hostname permanent including but not limited to changing /etc/sysconfig/network, using the hostname command, and using the "change hostname" feature within WHM. It reverts back to EC2's default format "ip-123-123-123-123.ec2.internal".

    It doesn't seem to hurt anything. All of my sites still work and WHM/cPanel is still fully accessible.

    Should I just leave it like that or should I make the hostname the same as the address I use to access it (server.domain.com)?

    Some system info:
    Code:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
    
    /etc/redhat-release:CentOS Linux release 7.2.1511 (Core)
    /usr/local/cpanel/version:11.56.0.9
    /var/cpanel/envtype:xen hvm
    CPANEL=release
    Server version: Apache/2.4.18 (Unix)
    Server built:   Apr  9 2016 10:23:37
    Cpanel::Easy::Apache v3.32.12 rev9999
    PHP 5.6.20 (cgi-fcgi) (built: Apr  9 2016 10:27:21)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    mysql  Ver 14.14 Distrib 5.6.30, for Linux (x86_64) using  EditLine wrapper
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. pandalion98

    pandalion98 Registered

    Joined:
    Aug 26, 2015
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    General Santos
    cPanel Access Level:
    Root Administrator
    The weird hostname was causing havoc on the mail system. Therefore, ignoring the hostname is NOT okay. However, it has been resolved in a recent ticket.

    Here's what he instructed me to do:
    And the hostname doesn't change now.
     
    Chris H likes this.
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice