AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.38k stars 246 forks source link

Can I generate configuration files from the command line? #351

Open Realmyname opened 1 year ago

Realmyname commented 1 year ago

Can I generate configuration files from the command line?

for example:

  -O string
        output  format, one of yaml|json format

dnsproxy -u 1.1.1.1:53 -O yaml

output content yaml configuration


bootstrap:
  - "8.8.8.8:53"
listen-addrs:
  - "0.0.0.0"
listen-ports:
  - 53
max-go-routines: 0
ratelimit: 0
udp-buf-size: 0
upstream:
  - "1.1.1.1:53"
timeout: '10s'
ameshkov commented 1 year ago

No, there's no such option.