Ddns getting ip from web

Hello there,
First bug (before phrabricator process?) here, so be gentle please :smiley:

Version: VyOS 1.5-rolling-202309291425

Describe problem:
#1)
DNS Forwarding — VyOS 1.4.x (sagitta) documentation, is not update ?
example:

on cli: set service dns dynamic address <interface> web-options url <url>
on faq/docs: set service dns dynamic interface <interface> use-web url <url>

I’m missing something?
(ie: I have seen v: 1.4.x sagitta, even when I choose latest doc…)

#2)
Even when use-web is set:

show service dns dynamic 
 address eth0 {
     service xxxxx.com {
         host-name xxxxx.com
         password key-api
         protocol cloudflare
         username xxxx@xxxx
         zone xxxxx.com
     }
     web-options {
         skip "Current IP Address: "
         url https://checkip.dyndns.com/
     }
 }

I got: /run/ddclient/ddclient.conf

### Autogenerated by dns_dynamic.py ###
daemon=300
syslog=yes
ssl=yes
pid=/run/ddclient/ddclient.pid
cache=/run/ddclient/ddclient.cache
web=googledomains use=no            
 # Web service dynamic DNS configuration for xxxxx.com [cloudflare, xxxxx.com]
usev4=ifv4, \
ifv4=eth0, \
protocol=cloudflare, \
zone=xxxxx.com, \
login=xxxxx@xxx, \
password=xxxx \
xxxxx.com

It’s normal that, ifv4, use eth0 ip, and not web?
And so, I got the “local” ip of eth0 (behind NAT)
cat /run/ddclient/ddclient.cache: atime=1696236009,backupmx=0,host=xxxxx.com,ipv4=10.0.10.9,…

Thanks

Edit:
In the file /run/ddclient/ddclient.conf
If i remove:

usev4=ifv4, \
ifv4=eth0, \

and modify the line 8: s/‘use=no’/‘use=web’/g, everything works, BUT the configuration will be temporary no?

My bad…
set ‘address’ to ‘web’ instead of ‘eth0’ and the file /run/ddclient/ddclient.conf seem good.

But you can’t say that I don´t RTFM as the doc haven´t been updated :stuck_out_tongue:

IE: seem like problem with ssl certificat if we set url “https://checkip.dyndns.com”, but working with default “googledomain”

Hi @zelogik,

set ‘address’ to ‘web’ instead of ‘eth0’ and the file /run/ddclient/ddclient.conf seem good.

Indeed, set service dns dynamic address web service <...> protocol cloudflare is what you want to go for.

But you can’t say that I don´t RTFM as the doc haven´t been updated :stuck_out_tongue:

Yes, pending for me. I’ll get to that.

IE: seem like problem with ssl certificat if we set url “https://checkip.dyndns.com”, but working with default “googledomain”

checkip.dyndns.com doesn’t work reliable with SSL=yes (TLS is intentionally hard-coded in the ddclient.conf that is generated) and thus we have switched to googledomains.