Hi,
I have a small but annoying problem - hopefully someone can help me:
So I use this...
/usr/local/directadmin/scripts/hostname.sh my.server.name
Verify with this:
/bin/hostname --fqdn
...but after the next reboot, the hostname is reset to what it was before. Anyone have an easy fix?
I have a small but annoying problem - hopefully someone can help me:
Your hostname, server, and the servername you have set in DirectAdmin, server.yourdomain.org, do not match. It is recommended that these two values are the same.
Solution: Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname
So I use this...
/usr/local/directadmin/scripts/hostname.sh my.server.name
Verify with this:
/bin/hostname --fqdn
...but after the next reboot, the hostname is reset to what it was before. Anyone have an easy fix?

Last edited: