Change Hostname
April 19, 2005 Posted by KP
It seems to be important to have a hostname which can be queried(nslookup or ping), especially for MTA. My ISP used something like myname.ispdomain.com by default, which I can’t add A record on my DNS server.
To change a hostname, do:
1. # hostname newname
2. Edit /etc/hosts
3. Edit /etc/rc.conf
After I changed it to hostname.mydomain.com, I added an A record in the zone file of mydomain.com.
Update: Hostname change may involve reverse dns configuration.
Related Posts:
Filed Under: FreeBSD General