Verified Commit b52a706b authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Add systemd-resolved DNS for quick-resolving changed Arch-controlled domains

parent 83307cad
# Query authoritative namesevers directly when resolving
# Arch Linux domains so we instantly know about Arch-specific changes.
[Resolve]
DNS=213.239.242.238 # ns1.first-ns.de
DNS=2a01:4f8:0:a101::a:1 # ns1.first-ns.de
DNS=213.133.105.6 # robotns2.second-ns.de
DNS=2a01:4f8:d0a:2004::2 # robotns2.second-ns.de
DNS=193.47.99.3 # robotns3.second-ns.com
DNS=2001:67c:192c::add:a3 # robotns3.second-ns.com
Domains=~archlinux.org ~pkgbuild.com
......@@ -6,6 +6,12 @@
state: restarted
daemon_reload: yes
- name: restart resolved
systemd:
name: systemd-resolved
state: restarted
daemon_reload: yes
- name: restart journald
systemd:
name: systemd-journald
......
......@@ -75,6 +75,14 @@
service: name=systemd-networkd state=started enabled=yes
when: configure_network
- name: create additional resolved config directory
file: path=/etc/systemd/resolved.conf.d
- name: configure additional resolved config for resolving Arch domains
copy: src=resolved-arch.conf dest=/etc/systemd/resolved.conf.d/resolved-arch.conf owner=root group=root mode=0644
notify:
- restart resolved
- name: create additional network config directory
file: path=/etc/systemd/network/10-dhcp-ethernet.network.d state=directory owner=root group=root mode=0755
when: dhcp|default(False) and additional_addresses is defined
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment