From c95d74e230df55cbaf4ccf3dfe4659f4e56d70c2 Mon Sep 17 00:00:00 2001 From: DoTheEvolution Date: Mon, 28 Dec 2020 21:51:46 +0100 Subject: [PATCH] update --- arch_linux_host_install/readme.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/arch_linux_host_install/readme.md b/arch_linux_host_install/readme.md index ef6612b..39227f5 100644 --- a/arch_linux_host_install/readme.md +++ b/arch_linux_host_install/readme.md @@ -79,8 +79,9 @@ So if theres boot menu option choose non-uefi. *%wheel ALL=(ALL) ALL* * check the network interface name
`ip link` -* set static IP using systemd-networkd and resolv.conf
- +* setup networking using systemd-networkd and systemd-resolved
+ create `20-wired.network` file either in static or dhcp configuration + `vim /etc/systemd/network/20-wired.network` ``` @@ -90,18 +91,27 @@ So if theres boot menu option choose non-uefi. [Network] Address=10.0.19.2/24 Gateway=10.0.19.1 + #DNS=8.8.8.8 ``` - `vim /etc/resolv.conf` - ``` - nameserver 8.8.8.8 - nameserver 1.1.1.1 + [Match] + Name=enp0s25 + + [Network] + DHCP=yes ``` - `systemctl enable --now systemd-networkd` + for DNS resolution and hostname exposure using mDNS and LLMNR
+ `systemd-resolved` will be used in stub mode
+ by replacing `/etc/resolv.conf` with a link to `stub-resolv.conf` - No troublesome `systemd-resolved` in this setup. + `ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf` + + enable the services + + * `systemctl enable --now systemd-resolved` + * `systemctl enable --now systemd-networkd` * uncomment desired locales in locale.gen
`vim /etc/locale.gen`