Hi,
I've fallowed this guide https://docs.ovh.com/gb/en/public-cloud/changing_the_hostname_of_an_instance/ but doesn't work.
The file /etc/hosts will be always modified. I can disable this behavior only if I remove the line
- update_etc_hosts
from the cloud_init_modules
Here is now my /etc/hosts file
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 myhostname.mydomain.it myhostname
But this is what I get
$ hostname --fqdn
myhostname.mydomain.it
$ hostname --all-fqdns
vps-xxxxx.vps.ovh.net
A tool that I've installed in this VPS finds this as FQDN myhostname.openstacklocal
Why I can't get always myhostname.mydomain.it?
Unable to set the right FQDN
Related questions
- Installing Operating System from custom image on OVH VPS ( CentOS 8 Tutorial)
9744
11.01.2020 21:11
- Remote access to MySQL database
4984
16.01.2018 15:29
- Nameserver for my vps
4684
07.08.2018 11:35
- Upgrading your VPS - need to extend your disk? The Easy way!
4672
14.02.2019 16:06
- Redirect domain to vps
4521
03.01.2018 22:32
- IPv6 Configuration
4287
30.07.2018 12:50
- Change server location
4088
06.11.2020 10:16
- Not able to connect to my server at all
3659
17.09.2020 19:56
- How to OVH Firewall and VPN
3626
29.10.2019 12:16
- Test latency of EU data centers
2867
30.01.2019 20:50