OPNsense Forum

English Forums => General Discussion => Topic started by: levi.rogers on April 02, 2025, 05:10:41 PM

Title: Issues with DynDNS using native os-ddclient and Azure
Post by: levi.rogers on April 02, 2025, 05:10:41 PM
I have been trying to get the Dynamic DNS setup with Azure DNS for a few hours.  I can see the login attempts from the service credential that I created but it never updates the record.  I have tried a ton of different settings with no luck.  My google-fu has ran out on this one. 

The logs are no help even with verbosity enabled.

I have tried different ip lookup services and I can see the traffic/request going out successfully.

This is all I see in the logs:

2025-04-02T10:05:14-05:00    Notice    ddclient    Account xxx [azure - Azure DNS] not modified   
2025-04-02T10:05:12-05:00    Notice    ddclient    Account xxx [azure - Azure DNS] executing   
2025-04-02T10:05:12-05:00    Notice    ddclient    Account xxx [azure - Azure DNS] uses Azure for service

Is there another log I can be looking at? 
Is there a way to debug this? 
Title: Re: Issues with DynDNS using native os-ddclient and Azure
Post by: levi.rogers on April 09, 2025, 02:56:07 PM
Anyone have any thoughts? 
Title: Re: Issues with DynDNS using native os-ddclient and Azure
Post by: levi.rogers on August 19, 2025, 06:27:58 PM
For Anyone else finding this through a web search:

https://micoolpaul.com/2022/07/20/configuring-pfsense-dynamic-dns-with-azure-dns/
Follow the first few steps in this article up to Configuring the PfSense Firewall  (do everything before that step).

After that go to your opnsense ddclient settings and set the following
Client Type:  Native
Select Service Microsoft Azure
YOUR HOSTNAME:  should ONLY be the hostname not the FQDN so - "test" not "test.com"
Username: Application Client ID for your Azure  AD App Regristation.
Password:  Secret Value
ResourceID:  is the path to your dns zone like this:
/subscriptions/xxx-xxx-xxx/resourceGroups/<resource group name>/providers/Microsoft.Network/dnsZones/<your zone name>

I hope this helps someone in the future.