That only works if you're not behind carrier grade NAT.
The goal is to lookup your own public IP address to store it in a DNS record. If you're behind a carrier grade NAT, there isn't much use in that exercise, right?
If you're behind a carrier NAT, would dyndns even have a purpose?