OVH

OVH set hostname to vps-b10533ad.vps.ovh.ca by default, which appears in lookups. Aside from changing the PTR/rDNS record in the OVH control panel, you can SSH into the node and change config.

Cloud Config

Change the following lines in /etc/cloud/cloud.cfg:

preserve_hostname: true
manage_etc_hosts: false

And comment out:

  • set_hostname
  • update_hostname
  • update_etc_hosts

Hosts

Also edit /etc/hosts and change as needed:

 127.0.0.1       localhost       dns1    dns1.zcyph.cc

::1             ip6-localhost   ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
ff02::3         ip6-allhosts

127.0.1.1       dns1.zcyph.cc

Contents of /etc/hostname may also be changed to match, and sudo hostname <newhostname> to update immediately, hostname -f to verify.

Lookups

Lookup results will change from:

;; ANSWER SECTION:
48.14.56.149.in-addr.arpa. 85299 IN PTR vps-b10533ad.vps.ovh.ca

To:

;; ANSWER SECTION:
48.14.56.149.in-addr.arpa. 84724 IN PTR dns1.zcyph.cc.