nslookup
"Python DNS for humans." - Simple, sensible high-level DNS lookups in Python (on top of dnspython dns.resolver)
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
Repository
"Python DNS for humans." - Simple, sensible high-level DNS lookups in Python (on top of dnspython dns.resolver)
Basic Info
Statistics
- Stars: 22
- Watchers: 1
- Forks: 8
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
PyNslookup
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,AAAArecord 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
- Website: https://www.buymeacoffee.com/RSyYAsQcHV
- Repositories: 123
- Profile: https://github.com/wesinator
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
Top Committers
| Name | 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
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
- Homepage: https://github.com/wesinator/pynslookup
- Documentation: https://nslookup.readthedocs.io/
- License: Mozilla Public License 2.0 (MPL 2.0)
-
Latest release: 1.8.1
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- dnspython *