Skip to content
Snippets Groups Projects
Commit 27352e44 authored by deuce's avatar deuce
Browse files

Bind to INADDR_ANY for DNS lookups rather than the interface address.

This allows using a private DNS server when an external interface is specified
(ie: DNS Server of 127.0.0.1 with an interface address specified)
parent be0606b3
No related branches found
No related tags found
No related merge requests found
......@@ -3839,7 +3839,7 @@ static void sendmail_thread(void* arg)
continue;
}
lprintf(LOG_DEBUG,"0000 SEND getting MX records for %s from %s",p,dns_server);
if((i=dns_getmx(p, mx, mx2, startup->interface_addr, dns
if((i=dns_getmx(p, mx, mx2, INADDR_ANY, dns
,startup->options&MAIL_OPT_USE_TCP_DNS ? TRUE : FALSE
,TIMEOUT_THREAD_WAIT/2))!=0) {
remove_msg_intransit(&smb,&msg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment