So does your domain name point to your external IP address? for get DNS for now as I think there might be some confusion here.
If your are sure your domain name points your external IP, then you need to change your
$CFG->wwwroot in your moodle.config file from your internal IP address to your domain name
This should work
Albert