MCPcopy Create free account
hub / github.com/rthalley/dnspython / rcode

Method rcode

dns/message.py:896–901  ·  view source on GitHub ↗

Return the rcode. Returns a ``dns.rcode.Rcode``.

(self)

Source from the content-addressed store, hash-verified

894 self.ednsflags &= ~int(dns.flags.DO)
895
896 def rcode(self) -> dns.rcode.Rcode:
897 """Return the rcode.
898
899 Returns a ``dns.rcode.Rcode``.
900 """
901 return dns.rcode.from_flags(int(self.flags), int(self.ednsflags))
902
903 def set_rcode(self, rcode: dns.rcode.Rcode) -> None:
904 """Set the rcode.

Callers 10

to_textMethod · 0.95
process_messageMethod · 0.80
next_requestMethod · 0.80
query_resultMethod · 0.80
is_responseMethod · 0.80
resolve_chainingMethod · 0.80
test_basic_syncFunction · 0.80
amainFunction · 0.80
to_doh_simpleFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_basic_syncFunction · 0.64
amainFunction · 0.64