From: Marcel Holtmann Date: Mon, 14 Dec 2009 02:19:17 +0000 (+0100) Subject: Tell resolver to enable EDNS0 support X-Git-Tag: 0.48~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=638442c0fe66197c29cd4fdb47eb921a169efd18;p=platform%2Fupstream%2Fconnman.git 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. --- 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));