Difference between revisions of "Hostnamectl"
Jump to navigation
Jump to search
↑ https://wiki.ubuntu.com/DebuggingSystemd
Line 3: | Line 3: | ||
Examples: | Examples: | ||
− | <code>hostnamectl set-hostname NEW_SERVER_NAME.YOUR_DOMAIN.COM</code> | + | * <code>hostnamectl set-hostname NEW_SERVER_NAME.YOUR_DOMAIN.COM</code> |
+ | |||
<code>[[/etc/cloud/cloud.cfg]]</code> | <code>[[/etc/cloud/cloud.cfg]]</code> |
Revision as of 09:23, 12 October 2020
hostnameclt
command included in the systemd
package.
Examples:
hostnamectl set-hostname NEW_SERVER_NAME.YOUR_DOMAIN.COM
/etc/cloud/cloud.cfg
preserve_hostname=true
Related terms
See also
hostnamectl
,cloud-init
,/etc/cloud/cloud.cfg
- FQDN, DNS,
hostname, dnsdomainname, domainname, hostnamectl, /etc/hostname, /etc/resolv.conf, /etc/systemd/resolved.conf, hostname -f
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[1],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze
Advertising: