Python Forum
ip addresses to hostnames
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ip addresses to hostnames
#1
Does anyone have a short script to read IP addresses from a txt file and resolve them to hostnames?

Thank you,
paulkt

I'm new to Python and was wondering if anyone has a simple script on how to resolve hostnames with a given list of IP addresses. Thanks.
Reply
#2
socket.gethostbyaddr(IP)
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  telnetlib. configure hostnames lado 1 2,912 May-30-2020, 01:49 PM
Last Post: matya0403

Forum Jump:

User Panel Messages

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