aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-29 19:51:21 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-29 19:51:21 +0200
commit49f978ae978a53b63310d8ff88be8038f9927dee (patch)
tree05822dcce6e6fe8b8b9eb02810edbadbf4a872c4
parenta5a6da46a0b22d5c7695774c6c7eb26856bc6488 (diff)
sgsn: Do not search the name with the "domain" name attached to itzecke/features/sgsn-ggsn-resolve
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.
-rw-r--r--openbsc/src/gprs/sgsn_ares.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/sgsn_ares.c b/openbsc/src/gprs/sgsn_ares.c
index c4012a4e3..eabf9401d 100644
--- a/openbsc/src/gprs/sgsn_ares.c
+++ b/openbsc/src/gprs/sgsn_ares.c
@@ -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;