The smartdns configuration options are quite powerful, but as a basic DNS service, only the service port and upstream servers need to be configured. Other parameters can be left as default, which is the best configuration for local home networks.
To provide service and accelerate DNS queries, the following configuration can be included in the smartdns.conf file:
# Listen on port 53 bind [::]:53 # Configure upstream servers server 184.108.40.206 server 220.127.116.11 server 18.104.22.168:53 server-tls 22.214.171.124
In the options:
bindindicates that the service end is opened and the corresponding port is listened to.
:53binds IPv4 port 53 and
[::]:53binds IPv6 port 53. The latter also binds IPv4 ports in most systems.
serverindicates the upstream server IP address, and the port can be omitted. If secure access to upstream is required,
server-httpscan be used. URI can also be used, such as
serveris not specified, the system DNS address in the
/etc/resolv.conffile will be automatically read.