* resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
* resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
Reset RES_NOIP6DOTINT flag in this case..
2004-08-17 Ulrich Drepper <drepper@redhat.com>
2004-08-17 Ulrich Drepper <drepper@redhat.com>
+ * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
+ * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
+ Reset RES_NOIP6DOTINT flag in this case..
+
* sysdeps/posix/getaddrinfo.c: Fix memory handling of
ai_canonname.
* sysdeps/posix/getaddrinfo.c: Fix memory handling of
ai_canonname.
} else if (!strncmp(cp, "no-ip6-dotint",
sizeof("no-ip6-dotint") - 1)) {
statp->options |= RES_NOIP6DOTINT;
} else if (!strncmp(cp, "no-ip6-dotint",
sizeof("no-ip6-dotint") - 1)) {
statp->options |= RES_NOIP6DOTINT;
+ } else if (!strncmp(cp, "ip6-dotint",
+ sizeof("ip6-dotint") - 1)) {
+ statp->options &= ~RES_NOIP6DOTINT;
} else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) {
statp->options |= RES_ROTATE;
} else if (!strncmp(cp, "no-check-names",
} else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) {
statp->options |= RES_ROTATE;
} else if (!strncmp(cp, "no-check-names",
#define RES_NOIP6DOTINT 0x00080000 /* Do not use .ip6.int in IPv6
reverse lookup */
#define RES_NOIP6DOTINT 0x00080000 /* Do not use .ip6.int in IPv6
reverse lookup */
-#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)
+#define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH|RES_NOIP6DOTINT)
/*
* Resolver "pfcode" values. Used by dig.
/*
* Resolver "pfcode" values. Used by dig.