X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fadns.h;h=e70abd50c93e86a6583dba8e157fbc82b05be82a;hb=22181a31434b2439e41200ec65a95cb8605d41f5;hp=5726e253d2c9a0fd18c83792dbfea07a54a99b2a;hpb=ac868fa87da18cdebb86103b35ce250bd171f700;p=adns.git diff --git a/src/adns.h b/src/adns.h index 5726e25..e70abd5 100644 --- a/src/adns.h +++ b/src/adns.h @@ -48,6 +48,7 @@ typedef enum { typedef enum { adns_qf_search= 0x000001, /* use the searchlist */ adns_qf_usevc= 0x000002, /* use a virtual circuit (TCP connection) */ + adns_qf_owner= 0x000004, /* fill in the owner field in the answer */ adns_qf_quoteok_query= 0x000010, /* allow quote-requiring chars in query domain */ adns_qf_quoteok_cname= 0x000020, /* allow ... in CNAME we go via */ adns_qf_quoteok_anshost= 0x000040, /* allow ... in answers expected to be hostnames */ @@ -195,6 +196,7 @@ typedef struct { typedef struct { adns_status status; char *cname; /* always NULL if query was for CNAME records */ + char *owner; /* only set if requested in query flags */ adns_rrtype type; /* guaranteed to be same as in query */ time_t expires; /* expiry time, defined only if _s_ok, nxdomain or nodata. NOT TTL! */ int nrrs, rrsz;