Skip to main content

hostname_resolver

A bulk hostname resolver, designed to get info on a large number of internal hostnames against internal TLDs.

Given a list of hostnames, finds their FQDN using an inbuilt list of top level domains. Designed for environments where user needs full names of internal servers, but has only hostnames.

In addition, provides limited formatting and reporting functionality (simple text or csv)

Installation

pip install  

Usage

import hostname_resolver
resolver = hostname_resolver.HostnameResolver()
resolver.run()

or:

python ./hostname_resolver/__init__.py

On default runs, hostname_resolver will prompt you for hostnames (recommend copy/pasting a column) h_r strips any duplicates and attempts to resolve hostnames as is or iterates each against its known TLDs. As it resolves it displays what was given, how it resolved the hostname, and the found IP. Once a full list is run, h_r then prompts you to run a new list, add to the previous list, build a report (text file or csv), or quit

Features

  • Adhoc functionality, most functionality modules are loaded only as needed to reduce startup time

  • versatility, hostnames to check can be passed through run, stdin, or the file can be called directly with hostnames in as command line arguments (single items, passable arrays, or path names to files containing hostnames)

  • Modularity. It's all horizontal as heck

Release files for hostname-resolver 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hostname-resolver 0.1.0
File Size Uploaded
hostname_resolver-0.1.0.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hostname-resolver 0.1.0
File Interpreter ABI Platform
hostname_resolver-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.1 kB

Release files / hostname_resolver-0.1.0.tar.gz

Download URL hostname_resolver-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4b8efb7ba19706e3ac12b76fed63d9873bcb278597a274d87746ff5081582276
BLAKE2b-256 checksum
How to use checksums
304ed1ec2829789f2b1cac04db49a2ab7adafc87ecc0a33188522c5278b9a97a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

Release files / hostname_resolver-0.1.0-py3-none-any.whl

Download URL hostname_resolver-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5420cabc8d4932758842ed006e5c44d1959192e17224294d9085f4b77eaaa7d1
BLAKE2b-256 checksum
How to use checksums
097f3423061e3a9bf136ecb7101e4ac2657fb4ca78561fdd48382369b5e6392d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page