You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#########################
# main settings
domain: yourdomain.com
ns1: 127.0.0.1
ns2: 127.0.0.1
#########################
# other configurables
# server address
listen_addr: 0.0.0.0:53
# debug (0 or 1)
debug: 0
# default TTL
ttl: 60
# default latency (in ms)
sleep: 0
# a 3rdparty domain which we don't own
a3rdparty_domain: whatever.com
# known DNS resolvers / clients connecting to us
known_servers:
127.0.0.1: localhost
1.2.3.4: powerdns1
1.2.3.5: powerdns2
2.3.4.5: bind-test1
4.5.6.7: msdns-test1
#########################
will look like with toml
[main]
domain = 'yourdomain.com'
ns1 = '127.0.0.1'
ns2 = '127.0.0.1'
# server address
listen_addr = '0.0.0.0:53'
# debug (0 or 1)
debug = 0
# default TTL
ttl = 60
# default latency (in ms)
sleep = 0
# a 3rdparty domain which we don't own
a3rdparty_domain = 'whatever.com'
known_servers = """
127.0.0.1 localhost
1.2.3.4 powerdns1
1.2.3.5 powerdns2
2.3.4.5 bind-test1
4.5.6.7 msdns-test1
"""
just a little caveat this will not work to python 3.10 below. so it will be a good idea to update the readme stating this only works with python 3.11 and above.
as of python 3.11 toml parser is part of standard library.
what does it mean for the project is as follow.
current yaml
will look like with toml
just a little caveat this will not work to python 3.10 below. so it will be a good idea to update the readme stating this only works with python 3.11 and above.
PR: #3
The text was updated successfully, but these errors were encountered: