[](https://travis-ci.org/mehrdadrad/pubdns)
[](https://pypi.python.org/pypi/pubdns/)
[](https://github.com/mehrdadrad/pubdns/blob/master/LICENSE)
[](https://pypi.python.org/pypi/pubdns)
[](http://pubdns.readthedocs.io/en/latest/?badge=latest)
pubdns is a library for python to have more than 28K public dns servers from 190+ countries at your python script. it works based on the public-dns.info collected data and there is a wrapper based on the dnspython to resolve all type of dns records through these public dns server smoothly.
### Quick start
```python
import pubdns
pd = pubdns.pubdns()
servers = pd.servers('US', 'los angeles')
```
### Sample data
```
[
{
'city': 'Los Angeles',
'server': '12.127.16.67',
'name': 'rmtu.mt.rs.els-gms.att.net.',
'reliability': '1.00'
},
{
'city': 'Los Angeles',
'server': '216.240.32.77',
'name': 'dns2.worldpassage.net.',
'reliability':'1.00'
},
...
]
```
### Sample DNS Query
```python
rs = pubdns.dns.resolver(servers, 'amazon.com', ['A'])
for r in rs:
print(r)
```
### Sample Data
```
{
'server':
{
'city': 'Los Angeles',
'server': '12.127.16.67',
'name': 'rmtu.mt.rs.els-gms.att.net.',
'reliability': '1.00'
},
'resolve': [
{'name': '176.32.98.166', 'type': 'A'},
{'name': '176.32.103.205', 'type': 'A'},
{'name': '205.251.242.103', 'type': 'A'}
]
}
```
## Feature Support
- Search by country and city
- Cache public-dns.info data and update with specific TTL
- Support HTTP proxy to get public dns data
- Query the public DNS with specific record type(s)
## Requirements
Python 2.6 or later.
## Installation
```
pip install pubdns
```
## License
This project is licensed under MIT license. Please read the LICENSE file.
## Contribute
Welcomes any kind of contribution, please follow the next steps:
- Fork the project on github.com.
- Create a new branch.
- Commit changes to the new branch.
- Send a pull request.
Metadata
Release files for pubdns 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pubdns-0.1.4.tar.gz | 5.9 kB | Without provenance | Details for pubdns-0.1.4.tar.gz |
Release files / pubdns-0.1.4.tar.gz
| Download URL | pubdns-0.1.4.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63eefd6b9f1357892e11a388c9a5e37d01ea16d629b9361c61e2d67198ea8649
|
|
BLAKE2b-256 checksum How to use checksums |
fd386cd1ecf3ea4a2d9cdae9a8f3fe6507adb06d54a2176b08287a3c6e93bf26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pubdns 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.