From 638442c0fe66197c29cd4fdb47eb921a169efd18 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 14 Dec 2009 03:19:17 +0100 Subject: [PATCH] Tell resolver to enable EDNS0 support With EDNS0 enabled it is possible to receive larger DNS responses over UDP without the requirement for using TCP. Potentially this could cause interop issues with some weird DNS servers, but it seems that also other operating systems enable this by default. --- src/resolver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resolver.c b/src/resolver.c index 3c78d21..3cf3732 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -258,6 +258,7 @@ static int resolvfile_append(const char *interface, const char *domain, err = ftruncate(fd, 0); cmd = g_strdup_printf("# Generated by Connection Manager\n" + "options edns0\n" "nameserver %s\n", server); len = write(fd, cmd, strlen(cmd)); -- 2.7.4