DNS issue on MacOS

Hello.

On MacOS (BigSur) after connecting the ferrumgate client, when I try to connect to a database via DNS I cannot do so. It doesn’t solve anything. However, I can connect via IP.

We have configured a single network, with a service IP range of 172.28.28.0/24 and a tunnel server ferrumgate.ourdomain.tech:9999. I have connectivity with the tunnel server:

root# nc -v ferrumgate.ourdomain.tech 9999
Connection to ferrumgate.ourdomain.tech port 9999 [tcp/distinct] succeeded!
SSH-2.0-OpenSSH_9.0

This behavior does not occur in Linux and I can connect without problem via DNS on Ubuntu.

Has it happened to anyone? How could I solve it?

Thanks in advance

please check it on bash with

dig $servicename
dig $servicename @172.28.28.1
dig $servicename.$networkname.$privatedomain
dig $servicename.$networkname.$privatedomain @172.28.28.1

and let us know please…