Unable to connect to MongoDB ATLAS

2019-03-16T21:36:15.064+0530 W NETWORK [thread1] Unable to reach primary for set mflix-shard-0
2019-03-16T21:36:15.590+0530 E NETWORK [thread1] SSL: error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message
2019-03-16T21:36:15.607+0530 E NETWORK [thread1] SSL: error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message
2019-03-16T21:36:15.625+0530 E NETWORK [thread1] SSL: error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message
2019-03-16T21:36:15.626+0530 W NETWORK [thread1] Unable to reach primary for set mflix-shard-0
2019-03-16T21:36:15.633+0530 E QUERY [thread1] Error: connect failed to replica set mflix-shard-0/mflix-shard-00-02-h8auq.mongodb.net.:27017,mflix-shard-00-00-h8auq.mongodb.net.:27017,mflix-shard-00-01-h8auq.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed

mongo --version
MongoDB shell version v3.6.1
git version: 025d4f4fe61efd1fb6f0005be20cb45a004093d1
OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
allocator: tcmalloc
modules: enterprise
build environment:
distmod: windows-64
distarch: x86_64
target_arch: x86_64

For mongo shell 3.6 and above you should use the srv connection string.