nslookup

"Python DNS for humans." - Simple, sensible high-level DNS lookups in Python (on top of dnspython dns.resolver)

https://github.com/wesinator/pynslookup

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary

Keywords

dns-lookups hacktoberfest
Last synced: 11 months ago · JSON representation

Repository

"Python DNS for humans." - Simple, sensible high-level DNS lookups in Python (on top of dnspython dns.resolver)

Basic Info
  • Host: GitHub
  • Owner: wesinator
  • License: mpl-2.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 46.9 KB
Statistics
  • Stars: 22
  • Watchers: 1
  • Forks: 8
  • Open Issues: 0
  • Releases: 0
Topics
dns-lookups hacktoberfest
Created over 6 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

PyNslookup

PyPi package

Simple, sensible high-level DNS lookups in Python (on top of dnspython dns.resolver).

Purpose and scope

This library is a simple wrapper around dnspython, to provide high level functions with good error/exception handling, for the most common basic DNS lookup cases.

  • A, AAAA record lookups (typical DNS queries)
  • SOA lookups

This is not intended to be a complete wrapper around dnspython library or to handle uncommon edge cases. Features like DoH are out of scope, and should be done using other libraries or dnspython directly.

Usage

Returns an object containing two arrays: - response_full: the full DNS response string(s) - answer: the parsed DNS answer (list of IPs or SOA string)

```python from nslookup import Nslookup

domain = "example.com"

Initialize Nslookup

dns_query = Nslookup()

Alternatively, the Nslookup constructor supports optional

arguments for setting custom dns servers (defaults to system DNS),

verbosity (default: True) and using TCP instead of UDP (default: False)

dnsquery = Nslookup(dnsservers=["1.1.1.1"], verbose=False, tcp=False)

ipsrecord = dnsquery.dnslookup(domain) print(ipsrecord.responsefull, ipsrecord.answer)

soarecord = dnsquery.soalookup(domain) print(soarecord.responsefull, soarecord.answer) ```

Note

This library is oriented around regular UDP DNS.

Using TCP modes in this simple library will create a separate TCP session for each query, which can be resource intensive for a large number of queries. For this it is recommended to use the more granular dnspython API directly.

Owner

  • Name: Wes
  • Login: wesinator
  • Kind: user
  • Location: Hesiod's fifth age

Hopefully improving the world, one line at a time | The pull requests will continue until software improves | Truth, substance, & common sense

GitHub Events

Total
  • Watch event: 2
Last Year
  • Watch event: 2

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 42
  • Total Committers: 6
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.119
Past Year
  • Commits: 9
  • Committers: 1
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
wesinator 5****r 37
Mrtn m****n@i****o 1
Vladislav Pavkin 5****4@m****u 1
Martin Ingesen m****n@k****o 1
reedmideke 2****e 1
Podalirius 7****s 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 3
  • Total pull requests: 4
  • Average time to close issues: 4 days
  • Average time to close pull requests: about 11 hours
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.25
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • wesinator (1)
  • KongNan (1)
  • xsser (1)
Pull Request Authors
  • MartinIngesen (1)
  • phylocko (1)
  • reedmideke (1)
  • p0dalirius (1)
Top Labels
Issue Labels
Pull Request Labels
enhancement (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 71,833 last-month
  • Total docker downloads: 2,527
  • Total dependent packages: 4
  • Total dependent repositories: 15
  • Total versions: 16
  • Total maintainers: 1
pypi.org: nslookup

Sensible high-level DNS lookups in Python, using DNSpython resolver

  • Versions: 16
  • Dependent Packages: 4
  • Dependent Repositories: 15
  • Downloads: 71,833 Last month
  • Docker Downloads: 2,527
Rankings
Downloads: 1.5%
Dependent packages count: 1.8%
Docker downloads count: 3.2%
Dependent repos count: 3.7%
Average: 6.0%
Forks count: 11.9%
Stargazers count: 13.9%
Maintainers (1)
Last synced: 12 months ago

Dependencies

requirements.txt pypi
  • dnspython *
setup.py pypi