natesales / q

A tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.
GNU General Public License v3.0
1.76k stars 62 forks source link

[feature request] read config from file #46

Closed amorphobia closed 1 year ago

amorphobia commented 1 year ago

I did not find this in the help text. This can help a lot for users in China, since the cloudflare DNS server is not accessible.

It can read "q.conf" in the same directory of the binary or in ~/.config, or specify the file path to override defaults.

natesales commented 1 year ago

I've added the Q_DEFAULT_SERVER environment variable which will allow you to set a default server