Class DNSHelpers

Class Documentation

class DNSHelpers

Class containing helper functions for constructing a DNS packet.

Public Static Functions

static inline char *ChangetoDnsNameFormat(char *dns, const char *host, int host_len)

This function converts www.google.com to 3www6google3com.

Parameters:
  • dns – Pointer to the current position in the DNS packet

  • host – Pointer to the original host character buffer, can have trailing dot

  • host_len – The length of the host character buffer

Returns:

char* New buffer position in DNS buffer