|
ArvernOS
|
Data Structures | |
| struct | dns_header_t |
| struct | dns_answer_header_t |
Functions | |
| int | dns_lookup (net_interface_t *interface, const char *domain, uint8_t ip[4]) |
| int dns_lookup | ( | net_interface_t * | interface, |
| const char * | domain, | ||
| uint8_t | ip[4] ) |
Performs a DNS lookup.
| interface | the interface that should be used to send the DNS packet |
| domain | the domain name that is to be looked up |
| ip | the receiving array for the IPv4 address |
0 on success, something else on error