Can we set easy-to-remember hostnames for EC2 instances?

后端 未结 11 996
一向
一向 2021-01-29 19:42

I\'m running a couple of standard Fedora instances on EC2. I feel the public hostnames of the instances assigned by Amazon are too weird and hard to remember. I\'d like to chang

11条回答
  •  南笙
    南笙 (楼主)
    2021-01-29 20:14

    Edit /etc/sysconfig/network as root.

    Replace

    HOSTNAME=localhost.localdomain
    

    with

    HOSTNAME=hostname.DOMAIN_NAME
    

    Then, either reboot or run /etc/init.d/network restart The server then should report its name as a FQDN.

提交回复
热议问题