I tried to do this recently and had someone set it up for me.
This thread looks confusing for newbies such as me
You can connect using domain or sub-domain.
You need to set this redirection in the dns A records (record type A) - with dns manager (advanced zone editor) if you have cpanel with your hosting.
Set the IP without port. Wait between 1/24 hours for dns to mitigate.
Then you can type in console connect with domain.com:27015 or sub.domain:27015 (whatever your port is)
I may got this wrong but to work with top domain you need to type @ in name host name.
Here is a screenshot using with
top domain:
This one is using sub-domain:
p.s Somebody told me that it is also possible to connect with domain only without port (which will be even shorter) if the default port is 27015 .
But somewhere in the forums was mentioned that cs won`t connect without port.