I need to add a domain/IP record to my hosts file on a CentOS box running WHM/cPanel, so that a domain which has no public DNS is routed to the correct IP address.
I've done this on my macbook but I'm unsure of the process on cPanel.
When I nano
/etc/hosts I see the following:
# Automatically generated by OnApp (2.3.1) 127.0.0.1 localhost 188.8.131.52 s1.mydomain.com
So - if the contents of this file are automatically generated:
- Is it safe to edit this file manually - or will cPanel wipe my changes during updates etc?
- Does WHM/cPanel have an GUI for adding hosts records?