i have 2 routers
1 dsl-2730u stock and 1 dir-600 with openwrt
i have network on 2730u and dir-600 as the repeater
on my server i have a self hosted ddns and it works fine
the dsl router doesnt support custom ddns
i set the ddns on openwrt with ddns-scripts but in logs i get this
ddns.myddns_ipv4.check_interval='5'
ddns.myddns_ipv4.enabled='1'
ddns.myddns_ipv4.interface='wan'
ddns.myddns_ipv4.ip_network='wan'
ddns.myddns_ipv4.ip_source='network'
ddns.myddns_ipv4.lookup_host='pc.domain.com'
ddns.myddns_ipv4.update_url='http://domain.com:8080/key?'
ddns.myddns_ipv4=service
165126 : verbose mode : 0 - run normal, NO console output
165126 : check interval: 300 seconds
165126 : force interval: 259200 seconds
165126 : retry interval: 60 seconds
165127 : retry counter : 0 times
165127 : No old process
165127 : last update: never
165127 : Detect registered/public IP
165127 : #> /usr/bin/nslookup pc.domain.com >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err
165127 : Registered IP 'some_ip' detected
165128 info : Starting main loop at 2021-03-28 16:51
165128 : Detect local IP on 'network'
165128 : Local IP '192.168.1.4' detected on network 'wan'
165128 : Update needed - L: '192.168.1.4' <> R: 'some_ip'
165128 ERROR : No or private or invalid IP '192.168.1.4' given! Please check your configuration
165129 ERROR : No update send to DDNS Provider
165129 : Waiting 300 seconds (Check Interval)
i know whats happening its trying to connect with 192.168.1.4 which is a local ip
the router has network connection i can ping 8.8.8.8 or anywhere i want
is there anyway i can workaround this?