From 7f8a0c9d33afa26047f02a2032e4d101bfbfac50 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 28 Apr 2023 00:28:16 +0100 Subject: Allow Anope to look up multiple DNS results. For fixing bug 1756. --- include/anope.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index f65acad48..ed894c4ce 100644 --- a/include/anope.h +++ b/include/anope.h @@ -548,6 +548,13 @@ namespace Anope */ extern Anope::string Resolve(const Anope::string &host, int type); + /** Does a blocking dns query and returns all IPs. + * @param host host to look up + * @param type inet addr type + * @return A list of all IPs that the host resolves to + */ + extern std::vector ResolveMultiple(const Anope::string &host, int type); + /** Generate a string of random letters and numbers * @param len The length of the string returned */ -- cgit