Andrew Bryant's picture

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?

Forum: 
Tags: 
Andrew Bryant's picture

Is there honestly no answer to this issue?

Jeremy Davis's picture

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

Andrew Bryant's picture

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.

Jeremy Davis's picture

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.

Add new comment