Reverse DNS lookup doesn't match hostname

nikhil asked:

There’s a service on our local intranet that depends on the hostname mapping to the ip address, it is failing for a centos host inside of a virtual machine. I have set the virtual network adapter as bridged.

➜ ~ dig +short nikhil-vm 
➜ ~ dig +short -x 

What can I do to fix this?

My answer:

Add a PTR record to your intranet’s DNS server(s) specifying the desired hostname for that IP address.

For instance, for a BIND zone

134     IN      PTR     nikhil-vm.intranet.invalid.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.