aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/surface
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-26 14:42:49 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-26 14:42:49 -0700
commiteb3b12e41752acbde3c020af3cebbdd6baf97e60 (patch)
treec91e2f6f3f148a66a06efbdd1f5b9a64feacfcb5 /src/core/surface
parentf7afa1f1ba4953c7bd6d20f0bbabc5742d3faea8 (diff)
Further client config work
Diffstat (limited to 'src/core/surface')
-rw-r--r--src/core/surface/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/surface/init.c b/src/core/surface/init.c
index ca61a38a35..03add81466 100644
--- a/src/core/surface/init.c
+++ b/src/core/surface/init.c
@@ -34,6 +34,8 @@
#include <grpc/census.h>
#include <grpc/grpc.h>
#include "src/core/channel/channel_stack.h"
+#include "src/core/client_config/resolver_registry.h"
+#include "src/core/client_config/resolvers/dns_resolver.h"
#include "src/core/debug/trace.h"
#include "src/core/iomgr/iomgr.h"
#include "src/core/profiling/timers.h"
@@ -56,6 +58,8 @@ void grpc_init(void) {
gpr_mu_lock(&g_init_mu);
if (++g_initializations == 1) {
+ grpc_resolver_registry_init("dns:///");
+ grpc_register_resolver_type("dns", grpc_dns_resolver_factory_create());
grpc_register_tracer("channel", &grpc_trace_channel);
grpc_register_tracer("surface", &grpc_surface_trace);
grpc_register_tracer("http", &grpc_http_trace);