Python Forum
Manipulating the filename of an output script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manipulating the filename of an output script
#2
So, do a reverse DNS lookup where you have the IP and want the hostname?
import socket
info = socket.gethostbyaddr("8.8.4.4")
print(info[0])
Output:
dns.google
Is that what you wanted?
Reply


Messages In This Thread
RE: Manipulating the filename of an output script - by jefsummers - Jan-15-2020, 05:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Filename stamp script is needed ineuw 11 6,711 Sep-12-2023, 03:05 AM
Last Post: ineuw
  output provide the filename along with the input file processed. arjunaram 1 1,496 Apr-13-2023, 08:15 PM
Last Post: menator01
  Real-Time output of server script on a client script. throwaway34 2 2,807 Oct-03-2021, 09:37 AM
Last Post: ibreeden
  Python script to summarize excel tables, then output a composite table? i'm a total n surfer349 1 3,290 Feb-05-2021, 04:37 PM
Last Post: nilamo
  Import output from python script to another varietyjones 1 2,900 Oct-12-2020, 09:07 PM
Last Post: bowlofred
  Manipulating data from a CSV EvanS1 5 3,636 Jun-12-2020, 05:59 PM
Last Post: perfringo
  manipulating two lists rancans 8 4,537 Apr-16-2020, 06:00 PM
Last Post: deanhystad
  Manipulating index value, what is wrong with this code? Emun 1 2,387 Feb-05-2020, 07:18 AM
Last Post: perfringo
  Manipulating Excel with Python. Spacely 2 5,110 Jun-25-2019, 01:57 AM
Last Post: Dequanharrison
  Redircet output of Python script to .txt file gurbhej_singh 7 10,062 May-20-2019, 01:11 AM
Last Post: woooee

Forum Jump:

User Panel Messages

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