# c-ares library constants

## Channel flags

pycares.ARES_FLAG_USEVC

pycares.ARES_FLAG_PRIMARY

pycares.ARES_FLAG_IGNTC

pycares.ARES_FLAG_NORECURSE

pycares.ARES_FLAG_STAYOPEN

pycares.ARES_FLAG_NOSEARCH

pycares.ARES_FLAG_NOALIASES

pycares.ARES_FLAG_NOCHECKRESP

See also

c-ares documentation for ares_init

## Nameinfo constants

pycares.ARES_NI_NOFQDN

pycares.ARES_NI_NUMERICHOST

pycares.ARES_NI_NAMEREQD

pycares.ARES_NI_NUMERICSERV

pycares.ARES_NI_DGRAM

pycares.ARES_NI_TCP

pycares.ARES_NI_UDP

pycares.ARES_NI_SCTP

pycares.ARES_NI_DCCP

pycares.ARES_NI_NUMERICSCOPE

pycares.ARES_NI_LOOKUPHOST

pycares.ARES_NI_LOOKUPSERVICE

pycares.ARES_NI_IDN

pycares.ARES_NI_IDN_ALLOW_UNASSIGNED

pycares.ARES_NI_IDN_USE_STD3_ASCII_RULES

See also

c-ares documentation for ares_getnameinfo

## Query types

pycares.QUERY_TYPE_A

  IPv4 address record.

pycares.QUERY_TYPE_AAAA

  IPv6 address record.

pycares.QUERY_TYPE_ANY

  Any record type (may be restricted by some DNS servers).

pycares.QUERY_TYPE_CAA

  Certification Authority Authorization record.

pycares.QUERY_TYPE_CNAME

  Canonical name record.

pycares.QUERY_TYPE_HTTPS

  HTTPS service binding record (RFC 9460). Used for discovering HTTPS endpoints and their parameters like supported protocols (h2, h3), alternative ports, and IP hints.

pycares.QUERY_TYPE_MX

  Mail exchange record.

pycares.QUERY_TYPE_NAPTR

  Naming Authority Pointer record.

pycares.QUERY_TYPE_NS

  Name server record.

pycares.QUERY_TYPE_PTR

  Pointer record (reverse DNS lookup).

pycares.QUERY_TYPE_SOA

  Start of Authority record.

pycares.QUERY_TYPE_SRV

  Service locator record.

pycares.QUERY_TYPE_TLSA

  TLSA record for DANE TLS authentication (RFC 6698). Used to associate TLS server certificates or public keys with domain names, enabling certificate pinning via DNS.

pycares.QUERY_TYPE_TXT

  Text record.

pycares.QUERY_TYPE_URI

  URI record (RFC 7553). Used for publishing mappings from hostnames to URIs.

## Query classes

pycares.QUERY_CLASS_IN

  Internet class (default).

pycares.QUERY_CLASS_CHAOS

  Chaos class.

pycares.QUERY_CLASS_HESOID

  Hesoid class.

pycares.QUERY_CLASS_NONE

  None class.

pycares.QUERY_CLASS_ANY

  Any class.

## Others

pycares.ARES_SOCKET_BAD