This is not related to DDNS if the service has your correct IP address... but...
This should probably be wan unless this is not the primary router.
The bad request is likely related to the service itself, not dns.
Let's take a look at some other bits of your config:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
This version is extremely old and it has been EOL for about half a decade now. It has many serious security vulnerabilities that have never been patched.
The upgrade path will necessarily require that you reset to defaults, and I suspect that you will need to make multiple stops along the way (probably 17.01 > 19.07 > 21.02 > 23.05; you might need 22.05 in there).
i know it's too old
could it be the problem that the ddns isn't working??? i use this router just for sqm it has a single core so when i update it becomes soo slow and laggy that's why I'm using this
I don't know. But, the version is so old that it is entirely unsupported and it is also not safe to use anymore due to the many vulnerabilities.
Even the syntax has changed significantly, so it's going to be hard to get valid support for this version (many people probably don't remember the nuances of that version -- it's from 7 years ago!).
Really? A quick look at your configuration make it look like it is purely a lan device and not doing any routing (I only see one network). How is it doing SQM??
Two things here:
if it is really doing SQM and is not powerful enough, it's time to get newer hardware for that purpose.
Yes, older firmware tends be less resource intensive than the latest... that's also true of the 'big' operating systems on general purpose computers. But unless you have a very specific need, you shouldn't ever be running very old versions for security and other reasons. For example, you could say that Windows XP is less resource intensive than Windows 10/11, but why would you run a version that has such extreme vulnerabilities (one of the few valid conditions for XP in this era would be an airgapped system with critical software that only runs on that version -- say CNC control software, for example).
i updated to 23.05 and put my ddns and still when i put my ddns domain and token in openwrt it automatically give me my public ip so i guess it's correct
Can you provide us with a network topology diagram that shows all the devices in play here (your main router, OpenWrt, the computer to which this rule points, etc.). Make sure you label all of them with their IP addresses.