dns_resolver::util

Module net

Source

Enums§

  • An error that can occur when reading a DNS TCP message.

Functions§

  • Read a DNS message from a TCP stream.
  • Write a serialised message to a TCP channel. This sends a two-byte length prefix (big-endian u16) and sets or clears the TC flag as appropriate.
  • Write a serialised message to a UDP channel. This sets or clears the TC flag as appropriate.
  • Like send_udp_bytes but sends to the given address