hostname not updating

  • Hello All,


    I can not change the hostname on my new OMV install.


    I go to: System - General - Network -> hostname field, change the value (have tried "nas", "backup" and "openmediavaulter"), click OK, and get no result, no "Please Wait....Saving" message or anything. It does not update the hostname.


    I have also tried ssh:


    Code
    root@openmediavault:~# hostname
    openmediavault
    root@openmediavault:~# hostname nas
    root@openmediavault:~# hostname
    nas
    root@openmediavault:~#


    but after rebooting, it always returns to openmediavault.


    Is this set in /etc/dhcp/dhclient.conf? Here is the contents:



    Code
    option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
    
    
    request subnet-mask, broadcast-address, time-offset, routers,
            domain-name, domain-name-servers, domain-search, host-name,
            netbios-name-servers, netbios-scope, interface-mtu,
            rfc3442-classless-static-routes, ntp-servers;
    
    
    send fqdn.fqdn "openmediavault.comcast.net.";


    I actually tried changing the last line to:


    Code
    send fqdn.fqdn "nas.comcast.net.";


    But it messed something up, so I just reinstalled to test again, but same behavior


    How do I change the hostname and why isn't the webgui working? Thanks!

  • Well, I figured it out and feel dumb for not noticing the cause before.


    The domain name was populated with my ISP, comcast, to something like this: .xx.xxx.xx.comcast.net, but since it started with a dot (.), it is invalid. I should have noticed the Domain Name field underneath Hostname was underlined in red. Changed domain to "local", and it updated the hostname just fine.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!