Your question seemed to be concerned with the DNS portion of things. @nikosT_3CX gave you a way to check if the SRV records are in place with 3CX provided FQDNs, which they are. If you use your own FQDN then you handle your own DNS records. Where is the tricky part?