(res_setoptions): Recognize edns0 option.
authordrepper <drepper>
Fri, 9 Feb 2007 23:41:46 +0000 (23:41 +0000)
committerdrepper <drepper>
Fri, 9 Feb 2007 23:41:46 +0000 (23:41 +0000)
resolv/res_init.c

index b5a03d1..640e087 100644 (file)
@@ -510,6 +510,8 @@ res_setoptions(res_state statp, const char *options, const char *source) {
                } else if (!strncmp(cp, "no-check-names",
                                    sizeof("no-check-names") - 1)) {
                        statp->options |= RES_NOCHECKNAME;
+                } else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) {
+                       statp->options |= RES_USE_EDNS0;
                } else {
                        /* XXX - print a warning here? */
                }