From 4c74930b677606cb6340686091315f7af9bd9c42 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 23 Oct 2014 20:31:48 +0100 Subject: [PATCH] API: Provide adns_qf_cname_strict In the medium term we want to make adns tolerate cname chains better. One thing we want to do is to change the default to be adns_qf_cname_loose. So introduce a flag now that allows applications to explicitly request strict. For now this new flag has no effect. Signed-off-by: Ian Jackson --- src/adns.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/adns.h b/src/adns.h index e248c10..51b489b 100644 --- a/src/adns.h +++ b/src/adns.h @@ -130,6 +130,7 @@ typedef enum { /* In general, or together the desired flags: */ adns_qf_quoteok_anshost=0x00000040,/* ... in things supposedly hostnames */ adns_qf_quotefail_cname=0x00000080,/* refuse if quote-req chars in CNAME we go via */ adns_qf_cname_loose= 0x00000100,/* allow refs to CNAMEs - without, get _s_cname */ + adns_qf_cname_strict= 0x00010000,/* forbid CNAME refs (default, currently) */ adns_qf_cname_forbid= 0x00000200,/* don't follow CNAMEs, instead give _s_cname */ adns_qf_want_ipv4= 0x00000400,/* try to return IPv4 addresses */ -- 2.30.2