diff options
Diffstat (limited to 'libnet/inc/dns.h')
-rw-r--r-- | libnet/inc/dns.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libnet/inc/dns.h b/libnet/inc/dns.h new file mode 100644 index 0000000..d6673e6 --- /dev/null +++ b/libnet/inc/dns.h @@ -0,0 +1,21 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#ifndef DNS_H +#define DNS_H + +#include <def.h> + +#define DNS_NOERROR 0 +#define DNS_FORMERR 1 +#define DNS_SERVFAIL 2 +#define DNS_NXDOMAIN 3 +#define DNS_NOTIMP 4 +#define DNS_REFUSED 5 +#define DNS_YXDOMAIN 6 +#define DNS_XRRSET 7 +#define DNS_NOTAUTH 8 +#define DNS_NOTZONE 9 + +u32 dns_request(const char *name); + +#endif |