2025-05-21 13:00:48 -05:00
2025-05-21 13:00:48 -05:00
2025-05-21 13:00:48 -05:00
2025-05-21 13:00:48 -05:00
2025-05-20 22:18:27 -05:00
2025-05-20 22:17:37 -05:00
2025-05-21 09:23:29 -05:00

hostname-service

A simple program that integrates with Windows Services to retrieve the hostname given an IP address.

Prerequisites

  • At least python3.10 or higher (may work on lower versions but untested)
  • python and pip are in your environmental variables (python --version)
  • pip install pywin32

Installation

  1. Download hostname-service.py file
  2. Open terminal as admin
  3. python hostname_service.py run

Program Run Options

Use python hostname_service.py and one of the following option names.

Option Name Description
run Start the server in standalone mode
install Create a Windows Service entry
start Start the Windows service
stop Stop the Windows service
restart Stop then Start the Windows service
remove Removes the Windows Service entry
debug Runs the Windows service in debug mode

How to use

  1. Make a post request to http://127.0.0.1:8999 with a body payload of {"ip":"8.8.8.8"}
  2. Should return {"hostname": "dns.google"}
S
Description
No description provided
Readme MIT
50 KiB
0 Stars 1 Watchers 0 Forks
2025-05-21 14:15:24 -05:00
Languages
Python 62%
Go 38%