Home > FreeBSD General > Change Hostname

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.

Bookmark and Share


Related Posts:

Filed Under: FreeBSD General

Leave a Comment









*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Categories

Archives

Links

  • Dedicated Servers
  • Meta