Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Connectivity test and bootstrap resolvers #28

Closed
przemyslaw0 opened this issue Aug 18, 2023 · 3 comments
Closed

Feature request: Connectivity test and bootstrap resolvers #28

przemyslaw0 opened this issue Aug 18, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@przemyslaw0
Copy link

I thinking on using doh-auth-proxy with systemd and in some Windows 10 PCs as a service.

I want to use a list of 2 ODoH relays and 10 ODoH servers, sometimes some servers are down and I cannot predict this, if using doh-auth-proxy with systemd won't work if one of the servers are down.

A good feature would be an automatic network connectivity test: The app would wait until the network is up and a check in the relays/servers would be performed to select only online relays/servers. This option would make doh-auth-proxy work fine with systemd or as a Windows service. This feature is implemented in dnscrypt-proxy: https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml#L282-L300

Another feature that would be good to be implemented is the ability of using bootstrap resolvers: If using doh-auth-proxy alone as a DNS forwarder for the network, it couldn't find any DNS server to resolve the hostnames of relays/servers. This feature is also implemented in dnscrypt-proxy: https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml#L234-L279

These are my suggestions.

@junkurihara junkurihara added the enhancement New feature or request label Aug 21, 2023
@junkurihara
Copy link
Owner

Hi @przemyslaw0

Thanks for your suggestions!

For the network connectivity test, doh-auth-proxy has a feature of periodic health check to check the connectivity between the proxy and the destination. But as you suggested, it simply alerts the disconnection, and it is not used to update the internal list of relays and destination resolvers. So like the dnscrypt-proxy, the dynamic updates of healthy relays and destination would be nice.

For the feature of bootstrap resolvers, you can configure it with doh-auth-proxy as with dnscrypt-proxy. But unlike dnscrypt-proxy, only one resolver address can be specified, and doh-auth-proxy doesn't use the system resolver even if not specified (Default is Google DNS).

## DNS (Do53) resolver address for bootstrap
bootstrap_dns = "8.8.8.8:53"

@przemyslaw0
Copy link
Author

@junkurihara

Thanks.

I'm thinking on using doh-auth-proxy as a service in both Windows and Linux, network connectivity would be very good.

@junkurihara
Copy link
Owner

In v0.3.0, we implemented a periodic health check and now we can set multiple booststrap resolvers ( #43 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants