How to Set the Correct Hostname for Directadmin

By | July 14, 2008

Often after initial Directadmin setup, made by your server provider, you keep getting the following message: Subject: This is e-mail notification to warn you that your hostname is setup improperly on your system. You keep getting this e-mail daily until you do something with your hostname. It’s quite a strange thing that hostname isn’t set up during main Directadmin installation, but these messages are annoying.

In order to solve this issue we need to run a Directadmin script via SSH. This will fix your installation and our won’t get this message anymore. Let’s go: we need to login as root and run the following script with two parameters:

/usr/local/directadmin/scripts/hostname.sh <hostname>

This will set your server hostname to one you specify in this command.

One thought on “How to Set the Correct Hostname for Directadmin

  1. Pingback: Recent URLs tagged Hostname - Urlrecorder

Comments are closed.