Bug #10390
closed
Fix DigitalOcean Dynamic DNS client for IPv6
Added by Csoban Kesmarki over 4 years ago.
Updated over 4 years ago.
Description
The DigitalOcean IPv6 Dynamic DNS Client could not find the proper IPv6 entry when updating and fails with the error message from DigitalOcean service:
'{"id":"unprocessable_entity","message":"record content is invalid: ipv4 address is invalid"}'
The corresponding line causes the failure is in /etc/in/dyndns.class, line 1054 (in pfSense v2.4.5 RELEASE):
if ($this->_dnsHost $dnsRecord->name && $dnsRecord->type 'A') {
Suggesting instead:
if ($this->_dnsHost $dnsRecord->name && $dnsRecord->type ($isv6 ? 'AAAA' : 'A')) {
If accepted, I will raise a pull request for this.
- Category set to Dynamic DNS
- Target version set to 2.5.0
- Status changed from New to Pull Request Review
- Status changed from Pull Request Review to Feedback
- Assignee set to Renato Botelho
- % Done changed from 0 to 100
PR has been merged. Thanks!
- Target version changed from 2.5.0 to 2.4.5-p1
- Status changed from Feedback to Resolved
New code is present. No direct way to test without an account, but the logic looks sound.
A note for testing: I'm using this modified code on my 2.4.5 as a patch since 3/29/2020 without any issue.
Also available in: Atom
PDF