Skip to content
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

dns/ddclient: empty ip send to dns provider & replace dyndns by dynu #4448

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@
<web_cloudflare>cloudflare</web_cloudflare>
<web_cloudflare_ipv4 value="cloudflare-ipv4">cloudflare-ipv4</web_cloudflare_ipv4>
<web_cloudflare_ipv6 value="cloudflare-ipv6">cloudflare-ipv6</web_cloudflare_ipv6>
<web_dyndns>dyndns</web_dyndns>
<web_dynu_ipv4 value="dynu-ipv4">dynu-ipv4</web_dynu_ipv4>
<web_dynu_ipv6 value="dynu-ipv6">dynu-ipv6</web_dynu_ipv6>
<web_freedns>freedns</web_freedns>
<web_he>he</web_he>
<web_icanhazip>icanhazip</web_icanhazip>
Expand Down
5 changes: 3 additions & 2 deletions dns/ddclient/src/opnsense/scripts/ddclient/lib/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
'cloudflare': '%s://one.one.one.one/cdn-cgi/trace',
'cloudflare-ipv4': '%s://1.1.1.1/cdn-cgi/trace',
'cloudflare-ipv6': '%s://[2606:4700:4700::1111]/cdn-cgi/trace',
'dyndns': '%s://checkip.dyndns.org/',
'dynu-ipv4': '%s://ipcheck.dynu.com/',
'dynu-ipv6': '%s://ipcheckv6.dynu.com/',
'freedns': '%s://freedns.afraid.org/dynamic/check.php',
'he': '%s://checkip.dns.he.net/',
'icanhazip': '%s://icanhazip.com/',
Expand Down Expand Up @@ -64,7 +65,7 @@ def extract_address(host, txt):
return match.group()
except ValueError:
pass
return ""
return None


def checkip(service, proto='https', timeout='10', interface=None):
Expand Down