Debian Codegraph @

README.md

raw
1 # dnspython
2
3 [![Build Status](https://github.com/rthalley/dnspython/actions/workflows/ci.yml/badge.svg)](https://github.com/rthalley/dnspython/actions/)
4 [![Documentation Status](https://readthedocs.org/projects/dnspython/badge/?version=latest)](https://dnspython.readthedocs.io/en/latest/?badge=latest)
5 [![PyPI version](https://badge.fury.io/py/dnspython.svg)](https://badge.fury.io/py/dnspython)
6 [![License: ISC](https://img.shields.io/badge/License-ISC-brightgreen.svg)](https://opensource.org/licenses/ISC)
7 [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
8
9 ## INTRODUCTION
10
11 `dnspython` is a DNS toolkit for Python. It supports almost all record types. It
12 can be used for queries, zone transfers, and dynamic updates. It supports
13 TSIG-authenticated messages and EDNS0.
14
15 `dnspython` provides both high- and low-level access to DNS. The high-level
16 classes perform queries for data of a given name, type, and class, and return an
17 answer set. The low-level classes allow direct manipulation of DNS zones,
18 messages, names, and records.
19
20 To see a few of the ways `dnspython` can be used, look in the `examples/`
21 directory.
22
23 `dnspython` is a utility to work with DNS, `/etc/hosts` is thus not used. For
24 simple forward DNS lookups, it's better to use `socket.getaddrinfo()` or
25 `socket.gethostbyname()`.
26
27 `dnspython` originated at Nominum where it was developed to facilitate the
28 testing of DNS software.
29
30 ## ABOUT THIS RELEASE
31
32 This is of `dnspython` 2.8.0.
33 Please read
34 [What's New](https://dnspython.readthedocs.io/en/stable/whatsnew.html) for
35 information about the changes in this release.
36
37 ## INSTALLATION
38
39 * Many distributions have dnspython packaged for you, so you should check there
40 first.
41 * To use a wheel downloaded from PyPi, run:
42
43 ```
44 pip install dnspython
45 ```
46
47 * To install from the source code, go into the top-level of the source code
48 and run:
49
50 ```
51 pip install --upgrade pip build
52 python -m build
53 pip install dist/*.whl
54 ```
55
56 * To install the latest from the main branch, run
57 `pip install git+https://github.com/rthalley/dnspython.git`
58
59 `dnspython`'s default installation does not depend on any modules other than
60 those in the Python standard library. To use some features, additional modules
61 must be installed. For convenience, `pip` options are defined for the
62 requirements.
63
64 If you want to use DNS-over-HTTPS, run
65 `pip install dnspython[doh]`.
66
67 If you want to use DNSSEC functionality, run
68 `pip install dnspython[dnssec]`.
69
70 If you want to use internationalized domain names (IDNA)
71 functionality, you must run
72 `pip install dnspython[idna]`
73
74 If you want to use the Trio asynchronous I/O package, run
75 `pip install dnspython[trio]`.
76
77 If you want to use WMI on Windows to determine the active DNS settings
78 instead of the default registry scanning method, run
79 `pip install dnspython[wmi]`.
80
81 If you want to try the experimental DNS-over-QUIC code, run
82 `pip install dnspython[doq]`.
83
84 Note that you can install any combination of the above, e.g.:
85 `pip install dnspython[doh,dnssec,idna]`
86
87 ### Notices
88
89 Python 2.x support ended with the release of 1.16.0. `dnspython` supports Python 3.10
90 and later. Future support is aligned with the lifetime of the Python 3 versions.
91
92 Documentation has moved to
93 [dnspython.readthedocs.io](https://dnspython.readthedocs.io).