Actually configure the DNS #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sr2/cloud-dns-ios#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Actually configure the DNS, making sure to change the settings if the DNS blocklist choice is updated.
We could add a canary record to the DNS server to verify that it's being used correctly, giving a different value depending on the specific server you're expecting to use.
Is this the full DoH query?
https://guardianproject.dev/sr2/cloud-dns-ios/src/branch/main/dns/ViewModel.swift#L56
Or should it be DoT?
The DoH endpoint is https://{server}/dns-query (e.g. https://dns.sr2.uk/dns-query) and I think you probably have to include the path.
There is also a DoT server on the same IPs but I think DoH is probably best for most users as port 443 is less likely to be firewalled than weird DoT ports.
Is there a good way to test, if I'm actually using your resolver?
Like some short-lived DNS resolution which only works with your DNS?
I'll add a test record in a bit, it something like
test.invalidcan resolve to some a web server and that'd let you test in Safari?Probably. You're the dev-ops guy and should probably know better than me! 😜
You should see a Cloudflare error page.
Right now if I try to enable I get:
It then turns itself off again.
In the simulator, which maybe doesn't work for this?
Simulator isn't working with all things Network Extensions.
On a real device, the installed settings can actually be found in
Settings > General > VPN & Network > DNS…and need to be manually activated by the user. No hints from the OS, impossible to send users straight there.
Will need UI to explain.
(And app will need to be slightly restructured to adapt to this reality.)
The feature is implemented, UI is another issue.