AtomDNS is atomic simple DNS server without plugins, all power builtin.
AtomDNS's config format could be changed at any time before v1.0.0 released.
yay -S atomdns
atomdns /path/to/atomdns.hcl
listen = "127.0.0.1:53"
upstream "default" {
type = "dot"
addr = "185.222.222.222:853"
tls_server_name = "public-dns-a.dns.sb"
}
rules = {
default: "default"
}
listen = "127.0.0.1:53"
upstream "oversea" {
type = "dot"
addr = "185.222.222.222:853"
tls_server_name = "public-dns-a.dns.sb"
}
upstream "mainland" {
type = "udp"
addr = "114.114.114.114:53"
}
match "to_mainland" {
type = "in_domain_list"
# get this file from https://github.com/felixonmars/dnsmasq-china-list
path = "/etc/atomdns/accelerated-domains.china.raw.txt"
}
rules = {
to_mainland: "mainland",
default: "oversea"
}