Remove EDNS0 option
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 24 Sep 2010 22:16:26 +0000 (00:16 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 24 Sep 2010 22:26:56 +0000 (00:26 +0200)
Many routers block EDNS0 DNS requests and that leads to a non working
DNS resolver for ConnMan. This option can now be removed and have dnsproxy
fallling back to DNS over TCP for big DNS replies.
The optimal solution would be to keep this option and disable it on the fly
for nameserver paths rejecting EDNS0 packets. Unfortunately ConnMan is not
able to detect those paths at the moment and so simply falls back to DNS
over TCP.

src/resolver.c

index f3faacd..eb080ba 100644 (file)
@@ -389,8 +389,7 @@ static int resolvfile_export(void)
        unsigned int count;
        mode_t old_umask;
 
-       content = g_string_new("# Generated by Connection Manager\n"
-                                               "options edns0\n");
+       content = g_string_new("# Generated by Connection Manager\n");
 
        /*
         * Nameservers are added in reverse so that the most recently