FreeBSD Server Administration

« System Logs | Main | Using Perl and MySQL »

April 19, 2005

Change Hostname

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.


Category : FreeBSD General

Posted by FreeBSD Newbie at April 19, 2005 12:40 AM

Comments

Post a comment



(Optional, will not be shown to the public)

Remember Me?