This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
настройка_сети_в_linux [2022/05/26 11:33] val [Файлы конфигурации Ubuntu >= 18] |
настройка_сети_в_linux [2022/11/02 11:51] val [Файлы конфигурации Ubuntu >= 18] |
||
---|---|---|---|
Line 229: | Line 229: | ||
<code> | <code> | ||
+ | hostnamectl set-hostname server2 | ||
+ | |||
# cat /etc/netplan/01-netcfg.yaml | # cat /etc/netplan/01-netcfg.yaml | ||
</code><code> | </code><code> | ||
Line 243: | Line 245: | ||
# netplan apply | # netplan apply | ||
+ | </code> | ||
+ | === systemd-resolved === | ||
+ | * [[https://wiki.archlinux.org/title/Systemd-resolved_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)|archlinux systemd-resolved (Русский)]] | ||
+ | |||
+ | <code> | ||
# cat /etc/resolv.conf | # cat /etc/resolv.conf | ||
</code><code> | </code><code> | ||
Line 249: | Line 256: | ||
nameserver 127.0.0.53 | nameserver 127.0.0.53 | ||
</code><code> | </code><code> | ||
+ | # resolvectl status | ||
+ | или | ||
+ | # systemd-resolve --status | ||
+ | |||
# cat /etc/systemd/resolved.conf | # cat /etc/systemd/resolved.conf | ||
</code><code> | </code><code> |