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
↓ 1,429 callers
Method
from_text
( cls, rdclass: dns.rdataclass.RdataClass, rdtype: dns.rdatatype.RdataType, to
dns/rdata.py:406
↓ 150 callers
Method
write
(self, stream, data, is_end=False)
dns/quic/_sync.py:210
↓ 117 callers
Method
get
(self, key)
dns/zone.py:227
↓ 109 callers
Method
to_wire
(self, file=None)
tests/test_edns.py:277
↓ 92 callers
Method
add
Add an item to the set.
dns/set.py:49
↓ 81 callers
Method
time
(self)
tests/test_resolver.py:213
↓ 80 callers
Method
to_text
Convert a node to text format. Each rdataset at the node is printed. Any keyword arguments to this method are passed on to the rdata
dns/node.py:93
↓ 79 callers
Function
S8
(v)
tests/test_serial.py:12
↓ 77 callers
Method
make
Convert text or a value into an enumerated type, if possible. *value*, the ``int`` or ``str`` to convert. Raises a class-specific ex
dns/enum.py:72
↓ 70 callers
Method
writer
(self, replacement=False)
tests/test_transaction.py:24
↓ 63 callers
Method
key
(self)
dns/btree.py:771
↓ 59 callers
Method
encode
(self, label: str)
dns/name.py:184
↓ 59 callers
Method
replace
Create a new Rdata instance based on the instance replace was invoked on. It is possible to pass different parameters to over
dns/rdata.py:427
↓ 58 callers
Method
get
Get the next token. want_leading: If True, return a WHITESPACE token if the first character read is whitespace. The default is False
dns/tokenizer.py:342
↓ 54 callers
Function
here
(filename)
tests/util.py:36
↓ 52 callers
Method
get_string
Read the next token and interpret it as a string. Raises dns.exception.SyntaxError if not a string. Raises dns.exception.SyntaxError
dns/tokenizer.py:569
↓ 48 callers
Method
delete
Delete an element matching *key* if it exists. If *exact* is not ``None`` then it must be an exact match with that element. The Node must no
dns/btree.py:294
↓ 47 callers
Method
get_name
(self, origin: Optional["dns.name.Name"] = None)
dns/wire.py:63
↓ 46 callers
Method
get_uint16
(self)
dns/wire.py:51
↓ 45 callers
Method
seek
(self, where: int)
dns/wire.py:69
↓ 43 callers
Method
decode
(self, label: bytes)
dns/name.py:187
↓ 43 callers
Method
get_rdataset
Get an rdataset matching the specified properties in the current node. None is returned if an rdataset of the specified type and
dns/node.py:206
↓ 42 callers
Method
_as_bytes
( cls, value: Any, encode: bool = False, max_length: int | None = None,
dns/rdata.py:481
↓ 39 callers
Method
pop
Remove an arbitrary item from the set.
dns/set.py:68
↓ 38 callers
Method
is_response
Is *other*, also a ``dns.message.Message``, a response to this message? Returns a ``bool``.
dns/message.py:279
↓ 37 callers
Method
next_request
Get the next request to send, and check the cache. Returns a (request, answer) tuple. At most one of request or answer will not be N
dns/resolver.py:685
↓ 36 callers
Method
async_run
(self, afunc)
tests/test_async.py:187
↓ 35 callers
Method
find_rrset
Look for an rdataset with the specified name and type in the zone, and return an RRset encapsulating it. This method is less efficien
dns/zone.py:463
↓ 34 callers
Method
_as_uint16
(cls, value)
dns/rdata.py:522
↓ 33 callers
Method
get_uint8
(self)
dns/wire.py:48
↓ 33 callers
Method
resolve
Query nameservers to find the answer to the question. The *qname*, *rdtype*, and *rdclass* parameters may be objects of the appropria
dns/resolver.py:1246
↓ 32 callers
Method
find_rdataset
Find an rdataset matching the specified properties in the current node. *rdclass*, a ``dns.rdataclass.RdataClass``, the class of the
dns/node.py:165
↓ 32 callers
Method
next
Get the next element, or return None if on the right boundary.
dns/btree.py:494
↓ 32 callers
Method
use_tsig
When sending, a TSIG signature using the specified key should be added. *keyring*, a ``dict``, ``callable`` or ``dns.tsig.Key``, is e
dns/message.py:680
↓ 31 callers
Method
choose_relativity
Return a name with the relativity desired by the caller. If *origin* is ``None``, then the name is returned. Otherwise, if *relativiz
dns/name.py:821
↓ 31 callers
Method
get_remaining
(self)
dns/wire.py:45
↓ 30 callers
Function
S2
(v)
tests/test_serial.py:8
↓ 30 callers
Method
get
(self, amount)
dns/quic/_common.py:52
↓ 30 callers
Method
get_rrset
Look for an rdataset with the specified name and type in the zone, and return an RRset encapsulating it. This method is less efficien
dns/zone.py:515
↓ 29 callers
Method
next_nameserver
(self)
dns/resolver.py:760
↓ 29 callers
Method
split
Split a name into a prefix and suffix names at the specified depth. *depth* is an ``int`` specifying the number of labels in the suffix
dns/name.py:754
↓ 29 callers
Method
to_wire
Convert name to wire format, possibly compressing it. *file* is the file where the name is emitted (typically an io.BytesIO file). I
dns/name.py:650
↓ 28 callers
Method
get_struct
(self, format: str)
dns/wire.py:60
↓ 28 callers
Method
keys
(self)
dns/zone.py:218
↓ 28 callers
Method
process_message
Process one message in the transfer. The message should have the same relativization as was specified when the `dns.xfr.Inbound` was
dns/xfr.py:101
↓ 28 callers
Method
set_rcode
Set the rcode. *rcode*, a ``dns.rcode.Rcode``, is the rcode to set.
dns/message.py:903
↓ 27 callers
Method
items
(self)
dns/zone.py:224
↓ 26 callers
Method
_validate_name
(self, name: dns.name.Name | str)
dns/zone.py:194
↓ 26 callers
Method
public_key
Return public key instance
dns/dnssecalgs/base.py:77
↓ 26 callers
Method
remaining
(self)
dns/wire.py:29
↓ 25 callers
Method
_as_uint8
(cls, value)
dns/rdata.py:514
↓ 25 callers
Method
is_identifier
(self)
dns/tokenizer.py:75
↓ 25 callers
Method
main
(self)
tests/nanonameserver.py:390
↓ 24 callers
Method
to_wire
(self, file)
dns/rdtypes/IN/APL.py:55
↓ 24 callers
Method
unget
Unget a token. The unget buffer for tokens is only one token large; it is an error to try to unget a token when the unget buffer is n
dns/tokenizer.py:453
↓ 23 callers
Method
is_absolute
Is the most significant label of this name the root label? Returns a ``bool``.
dns/name.py:395
↓ 23 callers
Method
reader
(self)
tests/test_transaction.py:21
↓ 23 callers
Method
update
Update the set, adding any elements from other which are not already in the set. *other*, the collection of items with which to updat
dns/set.py:236
↓ 22 callers
Method
get_bytes
(self, size: int)
dns/wire.py:32
↓ 22 callers
Method
get_node
Get a node in the zone, possibly creating it. This method is like ``find_node()``, except it returns None instead of raising an excep
dns/zone.py:263
↓ 22 callers
Method
prev
Get the previous element, or return None if on the left boundary.
dns/btree.py:454
↓ 21 callers
Method
_as_name
(cls, value)
dns/rdata.py:503
↓ 21 callers
Method
close
(self)
dns/_asyncbackend.py:33
↓ 20 callers
Method
get_counted_bytes
(self, length_size: int = 1)
dns/wire.py:41
↓ 20 callers
Method
use_edns
Configure EDNS behavior. *edns*, an ``int``, is the EDNS level to use. Specifying ``None``, ``False``, or ``-1`` means "do not use E
dns/message.py:792
↓ 19 callers
Method
name_exists
Does the specified name exist?
dns/transaction.py:240
↓ 19 callers
Method
query_result
( self, response: dns.message.Message | None, ex: Exception | None )
dns/resolver.py:781
↓ 18 callers
Function
_compute_times
(timeout)
dns/query.py:208
↓ 18 callers
Method
generate
(cls, key_size: int)
dns/dnssecalgs/dsa.py:97
↓ 18 callers
Method
get
Get the answer associated with *key*. Returns None if no answer is cached for the key. *key*, a ``(dns.name.Name, dns.rdatatype.Rdat
dns/resolver.py:452
↓ 18 callers
Method
have
(self, amount)
dns/quic/_common.py:42
↓ 18 callers
Method
park
Park the cursor. A cursor must be "parked" before mutating the BTree to avoid undefined behavior. Cursors created in a ``with`` block
dns/btree.py:423
↓ 18 callers
Method
resolve_name
Use a resolver to query for address records. This utilizes the resolve() method to perform A and/or AAAA lookups on the specified nam
dns/resolver.py:1407
↓ 18 callers
Method
to_unicode
Convert name to Unicode text format. IDN ACE labels are converted to Unicode. *omit_final_dot* is a ``bool``. If True, don't emit t
dns/name.py:597
↓ 18 callers
Method
unescape
(self)
dns/tokenizer.py:103
↓ 17 callers
Method
copy
Make a (shallow) copy of the set.
dns/set.py:100
↓ 17 callers
Method
to_digestable
Convert name to a format suitable for digesting in hashes. The name is canonicalized and converted to uncompressed wire format. All
dns/name.py:629
↓ 16 callers
Function
add_keys
(b, keys)
tests/test_btree.py:15
↓ 16 callers
Method
get_int
Read the next token and interpret it as an unsigned integer. Raises dns.exception.SyntaxError if not an unsigned integer. Returns an
dns/tokenizer.py:487
↓ 16 callers
Method
is_subdomain
Is self a subdomain of other? Note that the notion of subdomain includes equality, e.g. "dnspython.org" is a subdomain of itself.
dns/name.py:499
↓ 16 callers
Method
relativize
If the name is a subdomain of *origin*, return a new name which is the name relative to origin. Otherwise return the name. For examp
dns/name.py:789
↓ 16 callers
Method
rollback
Rollback the transaction. Normally transactions are used as context managers and commit or rollback automatically, but it may be done
dns/transaction.py:311
↓ 15 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:472
↓ 15 callers
Method
update_serial
Update the serial number. *value*, an `int`, is an increment if *relative* is `True`, or the actual value to set if *relative* is `Fa
dns/transaction.py:247
↓ 14 callers
Method
async_run
(self, afunc)
tests/test_async.py:781
↓ 14 callers
Method
changed
Has this transaction changed anything? For read-only transactions, the result is always `False`. For writable transactions, the resu
dns/transaction.py:287
↓ 14 callers
Method
make_socket
( self, af, socktype, proto=0, source=None, destination=None,
dns/_asyncbackend.py:77
↓ 13 callers
Method
addresses
(self, family: int = socket.AF_UNSPEC)
dns/resolver.py:365
↓ 13 callers
Method
canonicalize
Return a name which is equal to the current name, but is in DNSSEC canonical form.
dns/name.py:527
↓ 13 callers
Method
concatenate_remaining_identifiers
Read the remaining tokens on the line, which should be identifiers. Raises dns.exception.SyntaxError if there are no remaining tokens,
dns/tokenizer.py:618
↓ 13 callers
Method
cursor
Create a cursor.
dns/btree.py:737
↓ 13 callers
Method
find_node
Find a node in the zone, possibly creating it. *name*: the name of the node to find. The value may be a ``dns.name.Name`` or a ``str`
dns/zone.py:235
↓ 13 callers
Method
is_glue
(self)
dns/btreezone.py:51
↓ 13 callers
Method
mock_receive
( self, wire1, from1, wire2, from2, ignore_unexpected=True,
tests/test_query.py:714
↓ 13 callers
Method
mock_receive
( self, wire1, from1, wire2, from2, ignore_unexpected=True,
tests/test_async.py:784
↓ 13 callers
Method
parent
Return the parent of the name. For example, the parent of ``www.dnspython.org.`` is ``dnspython.org``. Raises ``dns.name.NoParent``
dns/name.py:842
↓ 13 callers
Method
sign
(self)
dns/tsig.py:115
↓ 13 callers
Method
unlink
(self)
dns/resolver.py:520
↓ 13 callers
Method
update
(self, data)
dns/tsig.py:112
↓ 12 callers
Method
_check_ended
(self)
dns/transaction.py:528
next →
1–100 of 3,382, ranked by callers