can you please help with below ?Yes, if you're in a double-NAT setup the router's DDNS function will not work and you will have to use your script.
Merlin's third-party firmware has the ability to update DDNS even with double-NAT.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!