// Note: This is just an example, you can modify it according to your needs f := func() { if in_dnsservers { return { "google4": "8.8.8.8:53", "google6": "[2001:4860:4860::8888]:53", "cloudflare4": "1.1.1.1:53" } } if in_dohservers { return { "google4": "https://dns.google/dns-query?address=8.8.8.8%3A443", "google6": "https://dns.google/dns-query?address=%5B2001%3A4860%3A4860%3A%3A8888%5D%3A443", "cloudflare4": "https://one.one.one.one/dns-query?address=1.1.1.1%3A443" } } if in_dnsquery { m := in_dnsquery if m.domain == "360.cn" { return { block: true } } if m.domain == "360.com" && m.type == "A" { return { ip: "1.2.3.4" } } if m.domain == "http3.ooo" { return { dohserverkey: "cloudflare4" } } return } } out := f()