Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

A bulk hostname resolver, against known TLDs

Project description

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

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
hostname_resolver-0.1.0-py3-none-any.whl (19.2 kB) Copy SHA256 hash SHA256 Wheel py3
hostname_resolver-0.1.0.tar.gz (12.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page