diff --git a/AGHTechDoc.md b/AGHTechDoc.md index c3b4b249..3045d6f7 100644 --- a/AGHTechDoc.md +++ b/AGHTechDoc.md @@ -202,9 +202,21 @@ If user clicks on "Fix" button, UI sends request to perform an automatic fix "dns":{"port":53,"ip":"127.0.0.1","autofix":true}, } -Deactivate (save backup as `resolved.conf.orig`) and stop DNSStubListener: +Deactivate DNSStubListener and update DNS server address. Create a new file: `/etc/systemd/resolved.conf.d/adguardhome.conf` (create a `/etc/systemd/resolved.conf.d` directory if necessary): + + [Resolve] + DNS=127.0.0.1 + DNSStubListener=no + +Specifying "127.0.0.1" as DNS server address is necessry because otherwise the nameserver will be "127.0.0.53" which doesn't work without DNSStubListener. + +Activate another resolv.conf file: + + mv /etc/resolv.conf /etc/resolv.conf.backup + ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf + +Stop DNSStubListener: - sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf systemctl reload-or-restart systemd-resolved Server replies: diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json index 09ec7e34..18e2d059 100644 --- a/client/src/__locales/en.json +++ b/client/src/__locales/en.json @@ -433,5 +433,8 @@ "example_rewrite_domain": "rewrite responses for this domain name only.", "example_rewrite_wildcard": "rewrite responses for all <0>example.org0> subdomains.", "disable_ipv6": "Disable IPv6", - "disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped." + "disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped.", + "autofix_warning_text": "If you click \"Fix\", AdGuardHome will configure your system to use AdGuardHome DNS server.", + "autofix_warning_list": "It will perform these tasks: <0>Deactivate system DNSStubListener0> <0>Set DNS server address to 127.0.0.10> <0>Replace symbolic link target of /etc/resolv.conf to /run/systemd/resolve/resolv.conf0> <0>Stop DNSStubListener (reload systemd-resolved service)0>", + "autofix_warning_result": "As a result all DNS requests from your system will be processed by AdGuardHome by default." } diff --git a/client/src/install/Setup/Settings.js b/client/src/install/Setup/Settings.js index dd059fac..246206ba 100644 --- a/client/src/install/Setup/Settings.js +++ b/client/src/install/Setup/Settings.js @@ -213,18 +213,31 @@ class Settings extends Component {
+
+