aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/dns.h')
-rw-r--r--include/asterisk/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/dns.h b/include/asterisk/dns.h
index 18ebaf585..615351b8a 100644
--- a/include/asterisk/dns.h
+++ b/include/asterisk/dns.h
@@ -26,12 +26,14 @@
struct ast_channel;
-/*! \brief Perform DNS lookup (used by enum and SRV lookups)
+/*! \brief Perform DNS lookup (used by DNS, enum and SRV lookups)
\param context
\param dname Domain name to lookup (host, SRV domain, TXT record name)
\param class Record Class (see "man res_search")
\param type Record type (see "man res_search")
\param callback Callback function for handling DNS result
+ \note Asterisk DNS is synchronus at this time. This means that if your DNS
+ services does not work, Asterisk may lock while waiting for response.
*/
extern int ast_search_dns(void *context, const char *dname, int class, int type,
int (*callback)(void *context, char *answer, int len, char *fullanswer));