netprobe_lite
netprobe_lite copied to clipboard
custom DNS port
Hello and thank you for putting this together in the first place.
I added ability to test the custom DNS server on a port other than 53
by specifying a new DNS_SERVER_PORT
variable in .env
. This variable is passed to Config_Netprobe()
which then passes it to NetworkCollector()
, and is finally passed to dnstest()
function. my_resolver()
has a nameserver_ports()
function which conveniently maps custom DNS IP addresses to our port passed as dict
.
Also updated README.md
and added comments where appropriate.
Tested before uploading on Arch and Alpine.
(my first pull request, please take it easy on me :monkey: )