

What it is for
Here you give the appliance its name. The host name is the short name (argos), the domain completes it: together they make the full name (FQDN) the appliance presents itself with, argos.johnsmith.test in the example company. It is the DNS domain, not a Windows or NIS domain.
The name appears in the console’s header and in the title of the browser window (argos :: Argos), in the console’s self-signed certificate, in the name proposed for Atlas and for the backup, and the DHCP scopes that name no domain of their own hand out the appliance’s.
The fields
| Field | What it holds | Rules |
|---|---|---|
| “Host name” | The appliance’s short name. | Required. A single label: letters, digits and inner hyphens, at most 63 characters. It is saved in lower case. |
| “Domain” | The DNS domain that completes the name. | Optional. An internal domain is fine too (lan, home.arpa). A leading or trailing dot is removed. |
Under the two fields the “Full name” line shows, as you type, the name the appliance will have after saving.
As long as the block has never been saved, the fields show the name the system has at that moment (the one given at installation).
What happens when you save
“Save” applies at once:
- the running system is renamed and the short name goes into
/etc/hostname; - the appliance’s line in
/etc/hosts(address127.0.1.1) is rewritten with the new full name; - the console’s self-signed certificate is reissued for the new name. If you imported the appliance’s CA into the browser (see HTTPS certificate below), the new certificate is signed by the same CA and the browser accepts it without questions; if you had only accepted an exception for the certificate, the browser asks you again;
- the DHCP scopes without a domain of their own start handing out the new one.
Open sessions and the firewall do not change.
Messages
| Message | Meaning |
|---|---|
| “One label only: letters, digits and inner hyphens (max 63)” | The name contains a dot, a space or a character that is not allowed. The domain goes in its own field. |
| “localhost and the IPv6 standard names belong to the system: they are never moved” | You typed localhost or one of the reserved names. |
| “Not a valid domain” | The domain is not a valid DNS name. |
| “Name and domain together exceed 253 characters” | The full name is too long for the DNS. |
| “the name was saved but the running system kept the old one (see the journal): it applies at the next boot” | The file was written but the system did not accept the change on the fly. The new name holds from the next reboot. |
| “the console certificate still carries the previous name: reissue it from HTTPS certificate” | The name changed, but nginx did not accept the new certificate; the console carries on with the old one. Use “Regenerate self-signed”. |
/etc/hosts
Argos does not rewrite the whole of /etc/hosts: it owns the 127.0.1.1 line (the appliance’s name) and a block delimited by # --- argos managed --- and # --- end argos managed ---, where it writes the records of DNS and DHCP → Local DNS, so that the appliance itself resolves them whatever DNS it uses (see DNS and DHCP). The localhost lines, the standard IPv6 ones and any line written by hand outside the block stay as they are.
For the technician Saving writes
/etc/hostname, runshostnamectl set-hostname, then renders/etc/hostsfrom the saved value and has nginx regenerate the self-signed certificate (short name, FQDN,localhost,127.0.0.1and every IPv4 address of the appliance). The domain is whathostname -fanddnsdomainnameanswer, not that ofdomainname(1).