From efacd08910b6e8170b5d1fcb50ced9bca779bbe0 Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Fri, 7 Apr 2023 19:47:01 +0800 Subject: [PATCH] chore: remove dnsmasq must_direct in example.dae --- docs/getting-started/README.md | 2 +- docs/getting-started/troubleshooting.md | 9 +-------- example.dae | 5 ----- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/getting-started/README.md b/docs/getting-started/README.md index 0fd5fa7..987f6fe 100644 --- a/docs/getting-started/README.md +++ b/docs/getting-started/README.md @@ -161,7 +161,7 @@ group { # See https://github.com/daeuniverse/dae/blob/main/docs/routing.md for full examples. routing { - pname(NetworkManager, systemd-resolved, dnsmasq) -> must_direct + pname(NetworkManager) -> direct dip(224.0.0.0/3, 'ff00::/8') -> direct ### Write your rules below. diff --git a/docs/getting-started/troubleshooting.md b/docs/getting-started/troubleshooting.md index 1cdd6f2..1a84ea8 100644 --- a/docs/getting-started/troubleshooting.md +++ b/docs/getting-started/troubleshooting.md @@ -18,14 +18,7 @@ Compile dae with CFLAG `-D__REMOVE_BPF_PRINTK`. See [build-by-yourself](build-by **1. Troubleshoot local DNS service** -If you use `systemd-resolved`, `dnsmasq` or other local DNS service in `/etc/resolv.conf`, do not use their DNS service. - -Methods to disable their DNS service: - -1. Method 1: by modifying their configurations. -2. Method 2: by modifying the content of `/etc/resolv.conf` to `nameserver 223.5.5.5` or other DNS. - -Alternatively, if you really want to use them, refer to [external-dns](external-dns.md). +If you use `adguardhome`, `mosdns` in `dns` section, refer to [external-dns](external-dns.md). **2. Troubleshoot firewall** diff --git a/example.dae b/example.dae index 1df4e36..e154ea4 100644 --- a/example.dae +++ b/example.dae @@ -142,11 +142,6 @@ group { routing { ### Preset rules. - # If you bind to WAN and set upstream (in section "dns") to a DNS service in localhost (dnsmasq, adguard, etc.), - # to avoid loops, let them "must_direct", which makes DNS requests not redirect back to dae again. - # "pname" means process name. - pname(dnsmasq, systemd-resolved) && l4proto(udp) && dport(53) -> must_direct - # Network managers in localhost should be direct to avoid false negative network connectivity check when binding to # WAN. pname(NetworkManager) -> direct