Closed tegefaulkes closed 20 hours ago
Log messages should express the fact that custom DNS (and what they are) are being used. Remember to be able to take IPv4 and IPv6 servers. Remember that this also affects how our IPv6 works.
As of now I don't think we support DoT or DoH. But that would be something to look into the future.
Providing the DNS servers to the resolver will override the default ones being used. To we want that behaviour because we have some leeway here.
For now I'll just do option 1 where we fully override the server list.
Mostly completed, just requires the changes in polykey
to be released. So we're currently blocked on that. @brynblack is working on it.
Specification
We should allow the user to specify what DNS servers they want to use as an option of
agent start
. This could be a--dns-servers -dns
option. It should take a varidic length ofHost | Hostname
.This list of servers needs to be passed all the way down to the
resolve
call withinPolykey
.Additional context
Tasks
dns
option toagent start
that will take a varidic length list of DNS server addresses. This needs to be parsed and validated.resolve
method needs to make use of this list when resolving addresses.