Description: A struct representing a host entry with its domain information.
Fields:
Host (string): The original host string.
Tld (string): The top-level domain.
Domain (string): The first-level domain.
SubName (string): The subdomain.
WildcardBase (string): The base for wildcard records.
WildcardRecords []Record: A slice of wildcard records.
Wildcard (bool): Indicates if the host has wildcard records.
Record
Description: A struct representing a DNS record.
Fields:
Type (string): The type of the DNS record.
Value (string): The value of the DNS record.
Notes:
The isASCII function is defined twice with the same implementation. It should be removed or refactored to avoid redundancy.
The HostEntry struct contains fields that are not used in the provided functions (WildcardRecords and Wildcard). These fields should be either used or removed to maintain clarity and avoid confusion.
This documentation provides a clear understanding of each function's purpose, parameters, return values, and usage examples, as well as descriptions of the defined types.