sgsn: Do not search the name with the "domain" name attached to it

In case the query for "hostname" will fail c-ares will append the
domain name of /etc/resolv.conf and query again. We don't want that
so claim we provide a list of domain names and then don't provide
any.

I didn't intend to have pushed the c-ares code to master yet.
This commit is contained in:
Holger Hans Peter Freyther 2015-05-29 19:51:21 +02:00
parent 5fd0c64e0a
commit 9cb249bf84
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ int sgsn_ares_init(struct sgsn_instance *sgsn)
options.sock_state_cb = setup_ares_osmo_fd;
options.sock_state_cb_data = sgsn;
optmask = ARES_OPT_FLAGS | ARES_OPT_SOCK_STATE_CB;
optmask = ARES_OPT_FLAGS | ARES_OPT_SOCK_STATE_CB | ARES_OPT_DOMAINS;
if (sgsn->ares_servers)
optmask |= ARES_OPT_SERVERS;