-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(pihole): add support for IPv6 Dual format #5253
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
feat(pihole): add support for IPv6 Dual format #5253
Conversation
Hi @tJouve. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
instrumented_http configures http metrics... |
/ok-to-test |
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.
instead of
out = append(out, &endpoint.Endpoint{
DNSName: DNSName,
Targets: []string{Target},
RecordTTL: Ttl,
RecordType: rtype,
})
could we use, this will help us improve code at some
NewEndpoint()...
I rollback this one |
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.
/lgtm
may need someone to validate where or not it solves a problem
@tholinka is it ok for you to test this one ? |
It works without crashing now, all records show up in Pi-Hole as expected! The logs do get spammed with It seems like it's trying to parse every
|
Should not log records reject by filter on listRecords because PiHole return A and AAAA records. It is normal to filter some records
OK, I removed the logs because it is a normal behaviour : PiHole return both A and AAAA records. So it is normal to filter out some records |
Co-authored-by: Michel Loiseleur <[email protected]>
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.
Deployed the newest commit and it's working
@tholinka: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
cc: @mloiseleur |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivankatliarchuk, mloiseleur, tholinka The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Fixes #5251
This PR add support for IPv6 Dual with the following format : y:y:y:y:y:y:x.x.x.x
PiHole support such IPs but previous implementations did not take it in account.
External DNS was able to push such record, but can not read it from the provider (the record was filtered out because mark as IPV6 but containing a '.' . Finally External DNS try to push again the record but the provider return an error because the record is duplicated.
This implementation fix this and the test used to determine if it is an IPv4 or IPv6 is more robust.
Also get rid of instrumented_http, httpClient is enough. See #5226 (comment) .
No change done on the V5 implementation as it is now deprecated.
Checklist