Now-DNS and pfSense

The alternative to a static IP address is a server that keeps track of your dynamic IP address. When the IP address changes, the client will immediately notify the server of the new IP address. This is known as Dynamic DNS. One of the free DDNS services that I use is Now-DNS.

I’ve noticed on pfSense version 2.3.5-RELEASE-p2 that custom client update entries will not work when the update url for curl looks something like this;

shell
curl -u <email>:<password> "https://now-dns.com/update?hostname=<hostname>"

It appears that the authentication fails when executing the client update. To fix this issue, remove the curl HTTP authentication option by commenting out the line below in the file /etc/inc/dyndns.class

php
<?php
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
php
<?php
if ($this->_curlSslVerifypeer) {
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
  } else {
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  }
    #curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
    curl_setopt($ch, CURLOPT_USERPWD, "{$this->_dnsUser}:{$this->_dnsPass}");
}

This does not have an adverse affect on custom client entries that use a token style update url which do not require a username or password. These urls tend to look like this;

text
https://www.duckdns.org/update?domains=exampledomain&token=a7c4d0ad-114e-40ef-ba1d-d217904a50f2&ip=%IP%
26 July 2018 — Written
26 July 2018 — Updated
Thedro Neely — Creator
now-dns-pfsense.md — Article

More Content

Openring

Web Ring

Comments

References

  1. https://thedroneely.com/git/
  2. https://thedroneely.com/
  3. https://thedroneely.com/posts/
  4. https://thedroneely.com/projects/
  5. https://thedroneely.com/about/
  6. https://thedroneely.com/contact/
  7. https://thedroneely.com/abstracts/
  8. https://ko-fi.com/thedroneely
  9. https://thedroneely.com/tags/ddns/
  10. https://thedroneely.com/tags/pfsense/
  11. https://thedroneely.com/posts/now-dns-pfsense/#isso-thread
  12. https://thedroneely.com/posts/rss.xml
  13. https://thedroneely.com/images/now-dns-pfsense.png
  14. https://en.wikipedia.org/wiki/Dynamic_DNS
  15. https://now-dns.com/
  16. https://www.pfsense.org/
  17. https://thedroneely.com/posts/now-dns-pfsense/#code-block-8f2ca7b
  18. https://thedroneely.com/posts/now-dns-pfsense/#code-block-6f4d446
  19. https://thedroneely.com/posts/now-dns-pfsense/#code-block-9722c28
  20. https://thedroneely.com/posts/now-dns-pfsense/#code-block-a3ded46
  21. https://www.thedroneely.com/posts/now-dns-pfsense.md
  22. https://thedroneely.com/posts/generating-archive-pages-with-hugo/
  23. https://thedroneely.com/posts/headless-gpu-remote-acceleration/
  24. https://thedroneely.com/posts/writing-nixos-modules-and-switching-to-cgit/
  25. https://git.sr.ht/~sircmpwn/openring
  26. https://drewdevault.com/2022/11/12/In-praise-of-Plan-9.html
  27. https://drewdevault.com/
  28. https://mxb.dev/blog/the-indieweb-for-everyone/
  29. https://mxb.dev/
  30. https://www.taniarascia.com/simplifying-drag-and-drop/
  31. https://www.taniarascia.com/
  32. https://thedroneely.com/posts/now-dns-pfsense#isso-thread
  33. https://thedroneely.com/posts/now-dns-pfsense#code-block-8f2ca7b
  34. https://thedroneely.com/posts/now-dns-pfsense#code-block-6f4d446
  35. https://thedroneely.com/posts/now-dns-pfsense#code-block-9722c28
  36. https://thedroneely.com/posts/now-dns-pfsense#code-block-a3ded46
  37. https://thedroneely.com/posts/good-evil-and-the-law/
  38. https://thedroneely.com/posts/website-auditing-tools/
  39. https://thedroneely.com/posts/a-javascript-executable/
  40. https://thedroneely.com/posts/automate-vultr-snapshots-using-bash/
  41. https://thedroneely.com/posts/a-better-firefox-experience/
  42. https://thedroneely.com/posts/declarative-user-package-management-in-nixos/
  43. https://drewdevault.com/2022/09/16/Open-source-matters.html
  44. https://mxb.dev/blog/make-free-stuff/
  45. https://thedroneely.com/sitemap.xml
  46. https://thedroneely.com/index.json
  47. https://thedroneely.com/resume/
  48. https://gitlab.com/tdro
  49. https://github.com/tdro
  50. https://codeberg.org/tdro
  51. https://thedroneely.com/analytics
  52. https://thedroneely.com/posts/now-dns-pfsense#
  53. https://creativecommons.org/licenses/by-sa/2.0/
  54. https://thedroneely.com/git/thedroneely/thedroneely.com
  55. https://opensource.org/licenses/GPL-3.0
  56. https://www.thedroneely.com/
  57. https://thedroneely.com/posts/now-dns-pfsense/#