-extern void format_address(struct rb_sockaddr_storage *addr, char *buffer, size_t length);
-extern void resolve_dns(int parc, char *parv[]);
-extern void enumerate_nameservers(const char *rid, const char letter);
+extern struct dns_query *lookup_hostname(const char *ip, DNSCB callback, void *data);
+extern struct dns_query *lookup_ip(const char *host, int aftype, DNSCB callback, void *data);
+extern void cancel_query(struct dns_query *query);
+
+extern void handle_resolve_dns(int parc, char *parv[]);
+extern void enumerate_nameservers(uint32_t rid, const char letter);