I'm trying to change the hostname of a LAMP Turnkey instance and once it's rebooted, the hostname is '(none)' (and is detected by third-party clients as such).

Any clues why?

Replies (4)

Is there honestly no answer

Reply 1

Is there honestly no answer to this issue?

I have no idea how to do it with Webmin

Reply 2

But if you update /etc/hostname and /etc/hosts with the new name and then restart your networking (or just reboot).

You can do it in Webmin by

Reply 3

You can do it in Webmin by navigating to Network > Network Configuration > Hostname & DNS Client.

Incidentally, it does seem it's a bug in both Webmin and Debian/Linux - my chosen hostname had an underscore in it (illegal character) but the system (either Webmin or the actual kernal) doesn't *stop* you using it. It just fails to apply the hostname, setting it to (none).

Changed the _ to - (as per here) and it's all peachy.

Did you configure it in DNS?

Reply 4

If so you'll also need to set it there. Or perhaps it's just been cached somewhere?

I have a DNS server running on my netwrok and just configured my desired hostname there and http(s) works as expected.