WireGuard Ar750s DNS

hello friends, i have a duckdns.org dns, i would like to make it possible to set it on wireguard of my device.
my ip is currently changing every three days and the settings for one time changed no longer allow wireguard devices to work.

how can i set my dns from the openwrt interface?
thanks

Assuming you’re using the native Wireguard app for your client :

  1. After importing the profile from AR-750S, with QR code
  2. Edit the profile at the ‘Peer’ section
  3. Under ‘Endpoint’, replace the IP address with your ddns, but leave the port alone.
    Eg: xyz.duckdns.org:51820

Test it out and see if it works.

This is the procedure I did right away but unfortunately it doesn’t work. I have followed the correct steps indicated by DUCKDNS and although I have updated the DDNS script via SSH, I cannot manage to make my personal DNS work anyway.

edit the config at /etc/config/ddns

config service “duckdns”
option enabled “1”
option domain “MYDNS.duckdns.org
option username “pivpnanonymous”
option password “xxxxxxxxxxxxxxxxxxxxxxxxx”
option ip_source “network”
option ip_network “wan”
option force_interval “72”
option force_unit “hours”
option check_interval “10”
option check_unit “minutes”
#option ip_source “interface”
#option ip_interface “eth0.1”
#option ip_source “web”
#option ip_url “http://ipv4.wtfismyip.com/text
option update_url “http://www.duckdns.org/update?domains=[USERNAME]&token=[PASSWORD]&ip=[IP]
#option use_https “1”
#option cacert “/etc/ssl/certs/cacert.pem”

now start it up

sh
. /usr/lib/ddns/dynamic_dns_functions.sh # note the leading period
start_daemon_for_all_ddns_sections “wan”
exit

we can now test the script by running the command

/usr/lib/ddns/dynamic_dns_updater.sh duckdns

Apologies @mikelosat.

I use mainly Gl.inet GUI to configure.

Please ping alzhao to chime in.

You are configuring duckdns on the router?

Can you just use our built-in ddns? Just too busy to try other services.

I would like to make sure that in my clients I can use my DNS so that I don’t have to change my ip manually every 2-3 days.