
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
3주차에서 mongo db 연결할 때 자꾸 오류가 떠요 ㅠㅠ 노션에 올라와있는 것도 밑에 보이는 사진처럼 해봤는데..
뭐가 문제일까요,, 오류땜에 자꾸 진도가 안 나가요 ,,ㅠㅠ


오류 :
pymongo.errors.ConfigurationError: The DNS response does not contain an answer to the question: _mongodb._tcp.cluster0.wzl4jv6.mongodb.net. IN SRV
코드 :
from pymongo import MongoClient
client = MongoClient('mongodb+srv://sparta:test@cluster0.wzl4jv6.mongodb.net/?retryWrites=true&w=majority')
db = client.dbsparta
doc = {
'name':'bob',
'age':27
}
db.users.insert_one(doc)
