aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dns/dns.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-05-29 13:46:35 -0400
committerDamjan Marion <dmarion@me.com>2019-05-30 08:55:50 +0000
commit2466f5068f044ddfcb1f300f1f20122030b52221 (patch)
tree89525f6895f8e372b538250b63c1e6ce140a1c0b /src/vnet/dns/dns.c
parent2a2e5938a3a019f94b4acf53191bf4a42d72c68a (diff)
Start the dns resolver process on demand
Change-Id: Iab27b405fb3ca7aed94ae974d57c286c41298c3a Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/dns/dns.c')
-rw-r--r--src/vnet/dns/dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/dns/dns.c b/src/vnet/dns/dns.c
index 2951679eaa4..bae6cb4911e 100644
--- a/src/vnet/dns/dns.c
+++ b/src/vnet/dns/dns.c
@@ -74,6 +74,9 @@ dns_enable_disable (dns_main_t * dm, int is_enable)
u32 n_vlib_mains = tm->n_vlib_mains;
vlib_main_t *vm = dm->vlib_main;
+ /* Create the resolver process if not done already */
+ vnet_dns_create_resolver_process (dm);
+
if (is_enable)
{
if (vec_len (dm->ip4_name_servers) == 0