summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-12-25 13:14:51 +0200
committerLars Wirzenius <liw@liw.fi>2023-12-26 08:23:37 +0200
commit87c7661268b0ea7bfe511ae7edb9ef6730484c2a (patch)
tree205d4a8d20c9f6356573bc97b408922edbdbc729
parentdd8430b14a39e1dc030053a39815e2d77c6e6f63 (diff)
downloadv-i-87c7661268b0ea7bfe511ae7edb9ef6730484c2a.tar.gz
feat: installer uses systemd-resolved
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author fix: domain-less DNS lookups Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rw-r--r--installer-ansible.yml10
-rw-r--r--installer.vmdb1
2 files changed, 11 insertions, 0 deletions
diff --git a/installer-ansible.yml b/installer-ansible.yml
index e924f06..2b2914e 100644
--- a/installer-ansible.yml
+++ b/installer-ansible.yml
@@ -152,8 +152,18 @@
[DHCPv4]
RouteMetric=20
+ UseDomains=true
dest: /etc/systemd/network/eth0.network
+ # Allow lookup of domain-less names, when the DHCP server doesn't
+ # set a domain for the LAN. See
+ # https://wiki.archlinux.org/title/Systemd-resolved#systemd-resolved_does_not_resolve_hostnames_without_suffix
+ - name: "tweak resolved.conf for domain-less DNS lookup"
+ lineinfile:
+ path: /etc/systemd/resolved.conf
+ regexp: ResolveUnicastSingleLabel=
+ line: ResolveUnicastSingleLabel=yes
+
- name: "configure bridge device br0 for local network ports"
copy:
content: |
diff --git a/installer.vmdb b/installer.vmdb
index da12124..0819a75 100644
--- a/installer.vmdb
+++ b/installer.vmdb
@@ -58,6 +58,7 @@ steps:
- dosfstools
- rsync
- btrfs-progs
+ - systemd-resolved
tag: root
- ansible: root