socket.gethostbyname 如何工作?

cat*_*ory 6 python sockets hostname ipv4

python 函数是如何socket.gethostbyname工作的?

具体来说,python如何从完全限定域名中获取ipv4地址?