Avec python, il est possible de déterminer l'adresse IP d'un site depuis son nom de domaine (DNS) en utilisant le module socket de python, illustration:
>>> import socket
>>> socket.gethostbyname('www.wikipedia.org')
'208.80.154.224
>>> socket.gethostbyname('openclassrooms.com')
'162.159.247.194'
Recherches associées
Liens | Site |
---|---|
socket — Low-level networking interface | python doc |
Domain Name System DNS | wikipedia |
What are PTR-records? | wireload |
IP address by Domain Name | stackoverflow |
Python lookup hostname from IP with 1 second timeout | stackoverflow |
What Is the IP Address of Google? | compnetworking |
What is 1e100.net and why do I have TCP ports open to it? | superuser |
Addresse ip de google [Résolu] | commentcamarche |
Does anyone have a full list of all IP address ranges worldwide? | yahoo |