I have pointed A record to my server IP in GOoDaddty as ns1.example.com and it is working.But I am confused with SSL error. I have generated SSL certificate with CN as ns1.example.com. When I try to connect to the server I get an error SSL handshake error. Is it like I need to setup DNS server on my server or it is ok with above setting. I generated certificates correctly. Is it like localhost in server != ns1.example.com thats why ssl is failing? how to resolve it?
It should be ok with above setting. Just make sure that you are reaching the correct IP (DNS being correctly propagated) and check with a DNS checker or openssl client the reason of the SSL hanshake error