Structs§
- CDdns
Globals - DnsHeader
- DnsRequest
Answer - DnsRequest
Header - DnsRequest
Payload - A request payload with (request) lines.
- DnsResponse
Payload - A response section
- RecordA
- RecordAAAA
- RecordCNAME
- RecordMX
- RecordNS
- Record
Other - RecordPTR
- RecordRRSIG
- RecordSOA
- RecordSRV
- RecordTXT
- RecordURI
- Status
Bits - Flags which control the status of th DNS query
Enums§
- DnsRdata
- QClass
- A two octet code that specifies the class of the query.
- QDns
Name - An structure for the target in request. Implements From for IpAddr, Ipv4Addr, Ipv6Addr, str In case if IP address is in the human readable ‘string’ format it will be stored as Name. And later the code will try to convert it to IP address before returing as string.
- QType
- A two octet code which specifies the type of the query. TYPE fields are used in resource records. Note that these types are a subset of QTYPEs. QTYPE fields appear in the question part of a query. QTYPES are a superset of TYPEs, hence all TYPEs are valid QTYPEs.
Constants§
- DEF_
HTTPS_ PORT - DEF_
TLS_ PORT - DEF_
USERAGENT - HOST_
CFG_ PATH - A hosts file location on disk
- IPV4_
BIND_ ALL - Default BIND for IPv4
- IPV6_
BIND_ ALL - Default BIND for IPv6
- NSSWITCH_
CFG_ PATH - A nsswitch location
- RESOLV_
CFG_ PATH - A location on the disk where resolv.conf is located
Statics§
Traits§
- Record
Reader - Trait for decoding DNS record structures from bytes read over the wire.
Functions§
- bind_
all - byte2hexchar
- Converts a part of the octec of IP to printable hex i.e valid range is from 0 up to 15 will be converted to 0x30..0x39 and ‘a’..‘f’.
- ip2pkt
- Converts IpAddr to sequence of bytes coded specially for the payload of package.
- ipv4_
pkt - ipv6_
pkt - name2pkt
- name2str
- This function converts a QNAME (encoded domains) to the String FQDN.
- pkt2name
- Verifies the sequence of labels coding and copies data from pkt to buffer.
- pkt2string_
exact - pkt2vec