-
Notifications
You must be signed in to change notification settings - Fork 214
Configuration File Format
Olivier Poitrey edited this page Jan 25, 2023
·
2 revisions
At startup, nextdns reads its on disk configuration. The format of this file
consists of one option per line, exactly as the options accepted by the run
sub-command without the leading -
. Lines starting with # are comments and
ignored.
Example configuration:
# Example configuration for NextDNS.
listen :5353
setup-router yes
report-client-info yes
profile 10.0.4.0/24=12345
profile 00:1c:42:2e:60:4a=67890
profile abcdef
forwarder mycompany.com=1.2.3.4,1.2.3.5
forwarder mycompany2.com=https://doh.mycompany.com/dns-query#1.2.3.4
Location and sometimes format of the configuration can vary from system to system. On some router firmware like OpenWRT, the configuration file is even merge with the firmware configuration backend. It is thus advised to use the nextdns config list
, nextdns config set
or nextdns config edit
commands to interact with the configuration.