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

fix: Handle /etc/resolv.conf more cautiously #36

Closed adamroyjones closed 2 years ago

adamroyjones commented 2 years ago

On my machine, dhcpcd had taken control of /etc/resolv.conf and populated it with nothing but comments. This led to a runtime panic as conf.Servers was well-defined, but empty. This branch adds handling for this case.

...I just love this program, by the way.

natesales commented 2 years ago

Thanks!