OPNsense Forum

English Forums => General Discussion => Topic started by: Liss on October 24, 2020, 03:44:52 PM

Title: Dynamic DNS cached IP always resolves to 0.0.0.0 - What am I missing? 😕
Post by: Liss on October 24, 2020, 03:44:52 PM
Hello!

I have, what is probably a very simple question- I am trying to configure dynamic DNS, with DuckDNS. However, I have an issue where the cached IP is always 0.0.0.0.

Even after I manually hit "Save and Force Update" in the DDNS settings, it remains as 0.0.0.0. I am using a VPN (connected to Mulllvad, via WireGuard with a static IP), could that be the reason why it is not working?

(https://i.ibb.co/GsCYh3Z/1-lobby-widget.png)

I am very new to this, and I think that I've likely just missed out a step, but was unable to find a guide or any examples online. Sorry if this is quite a basic question, but I would be super grateful, if anyone could point me in the right direction- thank you very much in advance  ;D

This is what I have done so far:

Under Services --> Dynamic DNS, I added a new client.

I set the Service type to DuckDNS and interface to monitor to LAN, added in the hostname I registered through DuckDNS, and double-checked, and inserted my DuckDNS credentials.

(https://i.ibb.co/c3yStfD/2-ddns-config.png)

---

Next, under System --> Settings --> General --> Networking, I enabled "Allow DNS server list to be overridden by DHCP/PPP on WAN"

(https://i.ibb.co/cvK1X9y/3-networking-settings.png)

---

I then went to System --> Settings --> Cron, and added a new job to update the IP for DuckDNS every morning, using the standard "Dynamic DNS Update" command

(https://i.ibb.co/g4Md9Xh/4-cron-job.png)

---

Under Services --> DHCPv4 --> [LAN] --> Dynamic DNS, I left it as is, and did not Enable registration of DHCP client names in DNS

(https://i.ibb.co/RY2jH28/5-not-enabled-dhcp-lan-ddns.png)

---

My DuckDNS account currently shows the correct IP, and seems to all be in order

(https://i.ibb.co/x8HKns7/Duck-dns.png)

---

Annoyingly, a while ago I did find a good tutorial (https://bachelor-tech.com/home-server-router-all-in-one/opnsense-dynamic-dns-set-up-with-duckdns/), but the website is now down, and I can't fully remember all the content, and doesn't seem to be archived anywhere- I'm slapping myself for not downloading it!

Any suggestions, would be really appreciated- thank you very much in advance!
Title: Re: Dynamic DNS cached IP always resolves to 0.0.0.0 - What am I missing? 😕
Post by: Liss on October 26, 2020, 09:12:49 PM
Any ideas would really help  :-*
Title: Re: Dynamic DNS cached IP always resolves to 0.0.0.0 - What am I missing? 😕
Post by: AhnHEL on October 26, 2020, 09:38:12 PM
Interface to Monitor should be WAN not LAN.
Title: Re: Dynamic DNS cached IP always resolves to 0.0.0.0 - What am I missing? 😕
Post by: Liss on October 27, 2020, 09:45:56 PM
QuoteInterface to Monitor should be WAN not LAN.

Thank you @AhnHEL - I feel dumb for not spotting that! Thank you very much for your help 🙌
Title: Re: Dynamic DNS cached IP always resolves to 0.0.0.0 - What am I missing? 😕
Post by: AhnHEL on October 28, 2020, 02:34:44 AM
Glad you got it sorted.  ;)