I have set my hostname like this:
$ sudo hostnamectl set-hostname dev.mydomain.com
and I see it got set when I do this:
$ hostnamectl status
Static hostname: dev.mydomain.com
Icon name: computer-vm
Chassis: vm
Machine ID: 3e729c2d7c094902af0333ce40564ffe
Boot ID: 68ed2ed21a55493785c1b11e2e6f11dc
Virtualization: kvm
Operating System: CentOS Linux 8 (Core)
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-147.3.1.el8_1.x86_64
Architecture: x86-64
But when I pin the server from somewhere else (my desktop, or another remote machine) I see this:
$ ping dev.mydomain.com
PING dev.mydomain.com (my-servers-ip-address) 56(84) bytes of data.
64 bytes from some-other-domain-name (my-servers-ip-address): icmp_seq=1 ttl=59 time=20.0 ms
So the first line returned by ping correctly references dev.mydomain.com and it's IP address, but then it gets some other domain for the "64 bytes from..." part of the message
Where is some-other-domain-name coming from?
The machine is vhosting a number of websites as subdomains, so could that be related somehow?
What config files should I be checking?
Thanks