Python Forum
anyway to get the domain name from the ip ??
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
anyway to get the domain name from the ip ??
#6
(Aug-08-2019, 08:57 PM)Larz60+ Wrote: Give it a valid IP Address
import socket

print(socket.gethostbyname('cleopatra.io'))
print(socket.gethostbyaddr('63.245.208.212'))
Output:
63.245.208.212 ('cleopatra.io', [], ['63.245.208.212'])

its valid bu can check it by visit it on ur browser ..
by it still not working with print(socket.gethostbyaddr('63.245.208.212')) !!
any idea ?? or any other way to do that ?
Reply


Messages In This Thread
RE: anyway to get the domain name from the ip ?? - by evilcode1 - Aug-09-2019, 07:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unix domain sockets Skaperen 8 5,058 Sep-02-2018, 07:02 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020