From 2bbb7d5b3c517956e95e5827037a76cbc39a20c8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 9 Feb 2007 23:46:29 +0000 Subject: * resolv/res_init.c (res_setoptions): Recognize edns0 option. * resolv/res_mkquery.c: Define __res_nopt. * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set try adding EDNS0 record. * resolv/res_send.c (send_dg): If request failed with FORMERR and EDNS0 record was send make sure we don't try it again. * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0. * include/resolv.h: Declare __res_nopt. --- resolv/resolv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resolv/resolv.h') diff --git a/resolv/resolv.h b/resolv/resolv.h index d7cda11..9aa09b8 100644 --- a/resolv/resolv.h +++ b/resolv/resolv.h @@ -180,6 +180,7 @@ struct res_sym { */ #define RES_F_VC 0x00000001 /* socket is TCP */ #define RES_F_CONN 0x00000002 /* socket is connected */ +#define RES_F_EDNS0ERR 0x00000004 /* EDNS0 caused errors */ /* res_findzonecut() options */ #define RES_EXHAUSTIVE 0x00000001 /* always do all queries */ @@ -209,6 +210,7 @@ struct res_sym { strings */ #define RES_NOIP6DOTINT 0x00080000 /* Do not use .ip6.int in IPv6 reverse lookup */ +#define RES_USE_EDNS0 0x00100000 /* Use EDNS0. */ #define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH|RES_NOIP6DOTINT) -- cgit v1.1