opnsense / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
810 stars 593 forks source link

dns/ddclient: Add Dreamhost DNS API support #3996

Open tmacphail opened 1 month ago

tmacphail commented 1 month ago

Dreamhost DNS API doesn't support an "update". Old records must be removed and new ones added. Removal requires exact match of hostname, type, and value so they must first be queried to know existing IP(s) to remove.

Also fixes a bug in the BaseAccount class where if checkip() returned "" instead of None on failure, the error would be bypassed and account execute() methods would receive "" for current_address. This was encountered when dyndns method was timing out for https.