-
Notifications
You must be signed in to change notification settings - Fork 204
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
fix/docs: fix the first check failure and possible dns leaking #418
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧪 Since the PR has been fully tested, please consider merging it.
# routing { | ||
# # According to the request of dns query, decide to use which DNS upstream. | ||
# # Match rules from top to bottom. | ||
# request { | ||
# # fallback is also called default. | ||
# fallback: alidns | ||
# } | ||
# # According to the response of dns query, decide to accept or re-lookup using another DNS upstream. | ||
# # Match rules from top to bottom. | ||
# response { | ||
# # Trusted upstream. Always accept its result. | ||
# upstream(googledns) -> accept | ||
# # Possibly polluted, re-lookup using googledns. | ||
# ip(geoip:private) && !qname(geosite:cn) -> googledns | ||
# # fallback is also called default. | ||
# fallback: accept | ||
# } | ||
# } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considered this is the advanced
use cases. Shall we put them in https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/routing.md?
We may create a separate block to include the proposed changes aboved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you.
Background
When local dns server is listening at :53 and resolv.conf points to it, the first connectivity check will fail. This is because when we use the local dns server to resolve the domain name of the node, the dae is not yet listening, but the ebpf program has been installed and dns request is redirected to dae, so the first dns request will fail.
If we add local dns servers to must_direct list, dns leaking possibly occurs.
Checklist
Full Changelogs
Issue Reference
Closes #[issue number]
Test Result