Sangoma phone not working when using DNS but using IP it works

Log file spits this out when I use the DNS name in the address field.

info [2025-04-23T15:34:09.774Z]: LOGIN
info [2025-04-23T15:34:09.775Z]: getDisabledNumberFormatting  false
info [2025-04-23T15:34:09.776Z]: RT API connection request made ...
info [2025-04-23T15:34:09.788Z]: Login request made for user - 1005 with username and password entered
error [2025-04-23T15:34:11.935Z]: Error: Unable to handle socket error
error [2025-04-23T15:34:11.936Z]: Error: Unable to handle socket error and lost connection to PBX
error [2025-04-23T15:34:11.936Z]: Error: Socket Disconnected
error [2025-04-23T15:34:11.936Z]: Error: Socket Disconnected

Specifying the IP in the address field works with a pop-up bitching about invalid SSL.

Nslookup from inside the network pings back the correct local IP. Nslookup from outside the network comes back to the correct external IP.

To me this is screaming DNS issue.

Wireshark sees my PC trying to hit my WAN address.

Any advice?

Was it DNS ?

Actually got busy with other setups. Never figured it out and I just keep accepting the invalid SSL cert. ha-ha Thankfully it’s our in-shop server so I’m not too worried about it.