Header file for dnsserv.c.
More...
Go to the source code of this file.
Header file for dnsserv.c.
Definition in file dnsserv.h.
◆ dnsserv_close_listener()
Free the evdns server port for conn, which must be an AP_DNS_LISTENER.
Definition at line 407 of file dnsserv.c.
◆ dnsserv_configure_listener()
Set up the evdns server port for the UDP socket on conn, which must be an AP_DNS_LISTENER
Definition at line 391 of file dnsserv.c.
◆ dnsserv_launch_request()
Helper function: called whenever the client sends a resolve request to our controller. We need to eventually answer the request req. Returns 0 if the controller will be getting (or has gotten) an event in response; -1 if we couldn't launch the request.
Definition at line 210 of file dnsserv.c.
◆ dnsserv_reject_request()
If there is a pending request on conn that's waiting for an answer, send back an error and free the request.
Definition at line 289 of file dnsserv.c.
◆ dnsserv_resolved()
void dnsserv_resolved |
( |
entry_connection_t * |
conn, |
|
|
int |
answer_type, |
|
|
size_t |
answer_len, |
|
|
const char * |
answer, |
|
|
int |
ttl |
|
) |
| |
Tell the dns request waiting for an answer on conn that we have an answer of type answer_type (RESOLVE_TYPE_IPV4/IPV6/ERR), of length answer_len, in answer, with TTL ttl. Doesn't do any caching; that's handled elsewhere.
Definition at line 339 of file dnsserv.c.