Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rthalley/dnspython
/ functions
Functions
3,382 in github.com/rthalley/dnspython
⨍
Functions
3,382
◇
Types & classes
528
↳
Endpoints
3
↓ 6 callers
Method
as_name
Try to interpret the token as a DNS name. Raises dns.exception.SyntaxError if not a name. Returns a dns.name.Name.
dns/tokenizer.py:643
↓ 6 callers
Method
caught
(self, who, e)
tests/nanonameserver.py:156
↓ 6 callers
Method
delete
Delete records. The first argument is always a name. The other arguments can be: - *empty* - rdata
dns/update.py:188
↓ 6 callers
Function
expand
(text)
tests/test_name.py:33
↓ 6 callers
Method
find_rdataset
Look for an rdataset with the specified name and type in the zone, and return an rdataset encapsulating it. The rdataset returned is
dns/zone.py:304
↓ 6 callers
Method
flush
Flush the cache. If *key* is not ``None``, only that item is flushed. Otherwise the entire cache is flushed. *key*, a ``(dn
dns/resolver.py:485
↓ 6 callers
Method
get_ttl
Read the next token and interpret it as a DNS TTL. Raises dns.exception.SyntaxError or dns.ttl.BadTTL if not an identifier or badly f
dns/tokenizer.py:694
↓ 6 callers
Method
get_uint32
(self)
dns/wire.py:54
↓ 6 callers
Method
get_wire
Return the wire format message.
dns/renderer.py:338
↓ 6 callers
Method
is_superdomain
Is self a superdomain of other? Note that the notion of superdomain includes equality, e.g. "dnspython.org" is a superdomain of itsel
dns/name.py:513
↓ 6 callers
Method
make_immutable
Make the BTree immutable. Attempts to alter the BTree after making it immutable will raise an Immutable exception. This operation ca
dns/btree.py:646
↓ 6 callers
Method
put
Associate key and value in the cache. *key*, a ``(dns.name.Name, dns.rdatatype.RdataType, dns.rdataclass.RdataClass)`` tuple whose va
dns/resolver.py:589
↓ 6 callers
Method
random_between
(self, first: int, last: int)
dns/entropy.py:94
↓ 6 callers
Method
recv
(self, size, timeout)
dns/_asyncbackend.py:64
↓ 6 callers
Method
to_text
Convert an rdata to text format. Returns a ``str``.
dns/rdata.py:203
↓ 6 callers
Method
values
(self)
dns/zone.py:221
↓ 6 callers
Method
write_header
Write the DNS message header. Writing the DNS message header is done after all sections have been rendered, but before the optional T
dns/renderer.py:317
↓ 6 callers
Method
writer
(self, replacement: bool = False)
dns/zone.py:872
↓ 5 callers
Method
__init__
*cleaning_interval*, a ``float`` is the number of seconds between periodic cleanings.
dns/resolver.py:428
↓ 5 callers
Method
__init__
Initialize a zone object. *origin* is the origin of the zone. It may be a ``dns.name.Name``, a ``str``, or ``None``. If ``None``, t
dns/zone.py:139
↓ 5 callers
Method
__init__
(self)
dns/nameserver.py:10
↓ 5 callers
Method
_as_bool
(cls, value)
dns/rdata.py:578
↓ 5 callers
Method
_as_ipv4_address
(cls, value)
dns/rdata.py:556
↓ 5 callers
Method
_as_uint48
(cls, value)
dns/rdata.py:538
↓ 5 callers
Function
_config_domain
(domain)
dns/win32util.py:79
↓ 5 callers
Method
_get_rdataset
Return the rdataset associated with *name*, *rdtype*, and *covers*, or `None` if not found.
dns/transaction.py:574
↓ 5 callers
Method
_invalid_type
(cls, gateway_type)
dns/rdtypes/util.py:44
↓ 5 callers
Function
_maybe_wait_for
(awaitable, timeout)
dns/_asyncio_backend.py:56
↓ 5 callers
Function
_wait_for_writable
(s, expiration)
dns/query.py:248
↓ 5 callers
Method
add
Add records. The first argument is always a name. The other arguments can be: - rdataset... - ttl,
dns/update.py:173
↓ 5 callers
Method
add_rrset
Add the rrset to the specified section. Any keyword arguments are passed on to the rdataset's to_wire() routine.
dns/renderer.py:178
↓ 5 callers
Method
close
(self)
dns/quic/_sync.py:82
↓ 5 callers
Method
close
(self)
dns/quic/_trio.py:73
↓ 5 callers
Method
delete_node
Delete the specified node if it exists. *name*: the name of the node to find. The value may be a ``dns.name.Name`` or a ``str``. If
dns/zone.py:289
↓ 5 callers
Method
difference_update
Update the set, removing any elements from other which are in the set.
dns/set.py:132
↓ 5 callers
Method
get_delegation
Get the delegation applicable to *name*, if it exists. If there delegation, then return a tuple consisting of the name of the delegat
dns/btreezone.py:109
↓ 5 callers
Method
get_identifier
Read the next token, which should be an identifier. Raises dns.exception.SyntaxError if not an identifier. Returns a string.
dns/tokenizer.py:586
↓ 5 callers
Function
get_rdata_class
(rdclass, rdtype, use_generic=True)
dns/rdata.py:672
↓ 5 callers
Method
get_soa
Get the zone SOA rdata. Raises ``dns.zone.NoSOA`` if there is no SOA RRset. Returns a ``dns.rdtypes.ANY.SOA.SOA`` Rdata.
dns/zone.py:773
↓ 5 callers
Method
intersection_update
Update the set, removing any elements from other which are not in both sets.
dns/set.py:117
↓ 5 callers
Method
is_maximal
Does this node have the maximal number of keys?
dns/btree.py:68
↓ 5 callers
Method
is_minimal
Does this node have the minimal number of keys?
dns/btree.py:73
↓ 5 callers
Method
is_whitespace
(self)
dns/tokenizer.py:72
↓ 5 callers
Method
make
( cls, v6: Answer | None = None, v4: Answer | None = None, add_empty: bool = T
dns/resolver.py:331
↓ 5 callers
Method
reserve
Reserve *size* bytes.
dns/renderer.py:343
↓ 5 callers
Method
resolve_chaining
Follow the CNAME chain in the response to determine the answer RRset. Raises ``dns.message.NotQueryResponse`` if the message is not
dns/message.py:999
↓ 5 callers
Method
sendto
(self, data, where)
tests/test_query.py:703
↓ 5 callers
Method
set_max_versions
Set a pruning policy that retains up to the specified number of versions
dns/versioned.py:199
↓ 5 callers
Method
skip_whitespace
Consume input until a non-whitespace character is encountered. The non-whitespace character is then ungotten, and the number of white
dns/tokenizer.py:322
↓ 5 callers
Method
to_dnskey
Return public key as DNSKEY
dns/dnssecalgs/base.py:32
↓ 5 callers
Method
to_text
Convert the RRset into DNS zone file format. See ``dns.name.Name.choose_relativity`` for more information on how *origin* and *relati
dns/rrset.py:132
↓ 5 callers
Method
to_wire
(self, file: Any | None = None)
dns/edns.py:301
↓ 5 callers
Method
try_ddr
Try to update the resolver's nameservers using Discovery of Designated Resolvers (DDR). If successful, the resolver will subsequently use
dns/resolver.py:1497
↓ 5 callers
Method
verify
(self, expected)
dns/tsig.py:119
↓ 5 callers
Method
wait_for
(self, amount, expiration)
dns/quic/_asyncio.py:36
↓ 4 callers
Function
_MAX
The maximum number of keys in node for a BTree with the specified ``t``
dns/btree.py:35
↓ 4 callers
Method
__init__
(self, a, akw=10)
tests/test_immutable.py:46
↓ 4 callers
Method
_add
Add records. *replace* is the replacement mode. If ``False``, RRs are added to an existing RRset; if ``True``, the RRset is
dns/update.py:133
↓ 4 callers
Method
_add_input
(self, data, is_end)
dns/quic/_sync.py:77
↓ 4 callers
Method
_add_input
(self, data, is_end)
dns/quic/_asyncio.py:73
↓ 4 callers
Method
_add_input
(self, data, is_end)
dns/quic/_trio.py:68
↓ 4 callers
Method
_check_read_only
(self)
dns/transaction.py:155
↓ 4 callers
Method
_check_value
(cls, value)
dns/enum.py:34
↓ 4 callers
Method
_cmp
Compare an rdata with another rdata of the same rdtype and rdclass. For rdata with only absolute names: Return < 0 if sel
dns/rdata.py:288
↓ 4 callers
Method
_ensure_algorithm_key_combination
(cls, key: DNSKEY)
dns/dnssecalgs/base.py:28
↓ 4 callers
Function
_escapify
Escape the characters in label which need it. @returns: the escaped string @rtype: string
dns/name.py:146
↓ 4 callers
Method
_get_char
Read a character from input.
dns/tokenizer.py:280
↓ 4 callers
Method
_get_identifier
(self)
dns/zonefile.py:147
↓ 4 callers
Method
_get_zonemd
(self, zone)
tests/test_zonedigest.py:110
↓ 4 callers
Method
_make_copy_query
(self)
tests/test_message.py:236
↓ 4 callers
Method
_make_opt
(flags=0, payload=DEFAULT_EDNS_PAYLOAD, options=None)
dns/message.py:788
↓ 4 callers
Function
_net_read
Read the specified number of bytes from sock. Keep trying until we either get the desired amount, or we hit EOF. A Timeout exception will be
dns/query.py:1079
↓ 4 callers
Method
_parse_rr_header
(self, section, name, rdclass, rdtype)
dns/message.py:943
↓ 4 callers
Function
_read_exactly
Read the specified number of bytes from stream. Keep trying until we either get the desired amount, or we hit EOF.
dns/asyncquery.py:341
↓ 4 callers
Method
_set_section
Set the renderer's current section. Sections must be rendered order: QUESTION, ANSWER, AUTHORITY, ADDITIONAL. Sections may be empty.
dns/renderer.py:137
↓ 4 callers
Function
_source_tuple
(af, address, port)
dns/asyncquery.py:66
↓ 4 callers
Method
_stir
(self, entropy: bytes | bytearray)
dns/entropy.py:48
↓ 4 callers
Method
_timeout_from_expiration
(self, expiration)
dns/quic/_common.py:90
↓ 4 callers
Method
_track_size
(self)
dns/renderer.py:153
↓ 4 callers
Function
_unescape
(value: str)
dns/rdtypes/svcbbase.py:101
↓ 4 callers
Function
_version_check
Is the requirement fulfilled? The requirement must be of the form package>=version
dns/_features.py:23
↓ 4 callers
Function
_wait_for_readable
(s, expiration)
dns/query.py:244
↓ 4 callers
Method
_wakeup
(self)
dns/quic/_asyncio.py:132
↓ 4 callers
Method
classify_rdataset
(cls, rdataset: dns.rdataset.Rdataset)
dns/node.py:67
↓ 4 callers
Method
close
(self)
dns/quic/_asyncio.py:78
↓ 4 callers
Method
commit
Commit the transaction. Normally transactions are used as context managers and commit or rollback automatically, but it may be done e
dns/transaction.py:298
↓ 4 callers
Method
concatenate
Return a new name which is the concatenation of self and other. Raises ``dns.name.AbsoluteConcatenation`` if the name is absolute and
dns/name.py:774
↓ 4 callers
Method
discard
(self, value: KT)
dns/btree.py:849
↓ 4 callers
Method
from_value
(cls, value)
dns/rdtypes/svcbbase.py:382
↓ 4 callers
Function
get_algorithm_cls
Get Private Key class from Algorithm. *algorithm*, a ``str`` or ``int`` specifying the DNSKEY algorithm. Raises ``UnsupportedAlgorithm`` if
dns/dnssecalgs/__init__.py:50
↓ 4 callers
Method
getpeername
(self)
dns/_asyncbackend.py:36
↓ 4 callers
Method
handle_wire
(self, wire, peer, local, connection_type)
tests/nanonameserver.py:262
↓ 4 callers
Method
isdisjoint
(self, other)
dns/set.py:302
↓ 4 callers
Function
make_example
(text: str, relativize: bool = False)
tests/test_btreezone.py:31
↓ 4 callers
Method
make_stream
(self, timeout=None)
dns/quic/_sync.py:233
↓ 4 callers
Method
predecessor
Return the maximal predecessor of *name* in the DNSSEC ordering in the zone whose origin is *origin*, or return the longest name under *origin
dns/name.py:857
↓ 4 callers
Method
receive
(self, timeout=None)
dns/quic/_sync.py:59
↓ 4 callers
Method
recvfrom
(self, size, timeout)
dns/_asyncbackend.py:56
↓ 4 callers
Method
recvfrom
(self, bufsize, expiration)
tests/test_async.py:765
↓ 4 callers
Method
response
The response for query *qname*. Returns a ``dns.message.Message``.
dns/resolver.py:134
← previous
next →
201–300 of 3,382, ranked by callers