Ddns and ssh

I am activating ssh and ddns in gl-mifi but it’s not working. Even when I do the nslookup it’s showing old ip address. The ssh works but it asks for password. Even though I enter the password I use for logging into the device it gives incorrect password.

When using DDNS, the device must have a direct public IP and must not pass through NAT.