var searchIndex = {}; searchIndex["resolv"] = {"doc":"This library consists of a high-level interface to Gnu libc's (glibc) `libresolv` DNS\nresolver. It allows you to look up DNS resource records of any type (e.g. A, AAAA, MX, TXT,\netc), use recursion (if your system's DNS resolver permits it), and perform the DNS search\nalgorithm to complete incomplete names, all via your operating system (glibc, not the kernel).","items":[[3,"Response","resolv","",null,null],[3,"Flags","","",null,null],[12,"0","","",0,null],[3,"RecordItems","","An iterator to iterate through DNS records",null,null],[3,"Resolver","","",null,null],[4,"Section","","",null,null],[13,"Question","","",1,null],[13,"Answer","","",1,null],[13,"Authority","","",1,null],[13,"Additional","","",1,null],[4,"Class","","DNS Class.",null,null],[13,"IN","","Internet Class. By far the most common.",2,null],[13,"CSNET","","CSNET class (obsoleted)",2,null],[13,"CHAOS","","CHAOS class (https://en.wikipedia.org/wiki/Chaosnet)",2,null],[13,"HS","","Hesoid (https://en.wikipedia.org/wiki/Hesiod_(name_service))",2,null],[13,"NONE","","None. Used for "name is not in use" requests.",2,null],[13,"ANY","","Any. Used for "name is in use" requests.",2,null],[4,"ResolverOption","","Options for the Resolver",null,null],[13,"Init","","address initialized",3,null],[13,"Debug","","print debug messages",3,null],[13,"AAOnly","","authoritative answers only (!IMPL)",3,null],[13,"UseVC","","use virtual circuit",3,null],[13,"Primary","","query primary server only (!IMPL)",3,null],[13,"IgnTc","","ignore truncation errors",3,null],[13,"Recurse","","recursion desired",3,null],[13,"DefNames","","use default domain name",3,null],[13,"StayOpen","","Keep TCP socket open",3,null],[13,"DNSrch","","search up local domain tree",3,null],[13,"Insecure1","","type 1 security disabled",3,null],[13,"Insecure2","","type 2 security disabled",3,null],[13,"NoAliases","","shuts off HOSTALIASES feature",3,null],[13,"UseInet6","","use/map IPv6 in gethostbyname()",3,null],[13,"Rotate","","rotate ns list after each query",3,null],[13,"NoCheckName","","do not check names for sanity (!IMPL)",3,null],[13,"KeepTSIG","","do not strip TSIG records",3,null],[13,"Blast","","blast all recursive servers",3,null],[13,"UseBString","","IPv6 reverse lookup with byte strings",3,null],[13,"NoIp6DotInt","","Do not use .ip6.int in IPv6 reverse lookup",3,null],[13,"UseEDNS0","","Use EDNS0.",3,null],[13,"SngLkup","","one outstanding request at a time",3,null],[13,"SngLkupReop","","one outstanding request at a time, but open new socket for each request",3,null],[13,"UseDNSSEC","","use DNSSEC using OK bit in OPT",3,null],[13,"NoTLDQuery","","Do not look up unqualified name as a TLD.",3,null],[13,"Default","","Default values",3,null],[0,"error","","",null,null],[4,"ResolutionError","resolv::error","",null,null],[13,"Success","","Success",4,null],[13,"HostNotFound","","Authoritative Answer "Host not found"",4,null],[13,"TryAgain","","Non-Authoritative "Host not found" or SERVERFAIL.",4,null],[13,"NoRecovery","","Non recoverable errors, FORMERR, REFUSED, NOTIMP.",4,null],[13,"NoData","","Valid name, no data record of requested type.",4,null],[4,"Error","","",null,null],[13,"Resolver","","Name Resolution failed",5,null],[13,"CString","","String contains null bytes",5,null],[13,"CStr","","Stirng contains null bytes",5,null],[13,"ParseError","","Name service response does not parse",5,null],[13,"NoSuchSectionIndex","","Section/Index is out of bounds",5,null],[13,"UncompressError","","Uncompress Error",5,null],[13,"Unterminated","","Result from dn_expand was not null terminated",5,null],[13,"WrongRRType","","Wrong Resource record type",5,null],[13,"Utf8","","String is not valid UTF-8",5,null],[13,"UnknownClass","","Unknown class",5,null],[11,"fmt","","",4,null],[11,"fmt","","",5,null],[11,"from","","",5,{"inputs":[{"name":"resolutionerror"}],"output":{"name":"error"}}],[11,"from","","",5,{"inputs":[{"name":"utf8error"}],"output":{"name":"error"}}],[11,"from","","",5,{"inputs":[{"name":"frombyteswithnulerror"}],"output":{"name":"error"}}],[11,"question_response","resolv","",0,null],[11,"operation_code","","",0,null],[11,"authoritative_answer","","",0,null],[11,"truncation_occurred","","",0,null],[11,"recursion_desired","","",0,null],[11,"recursion_available","","",0,null],[11,"must_be_zero","","",0,null],[11,"authentic_data","","",0,null],[11,"checking_disabled","","",0,null],[11,"response_code","","",0,null],[11,"eq","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"new","","This is for internal use.",6,{"inputs":[{"name":"message"},{"name":"box"}],"output":{"name":"response"}}],[11,"get_id","","Gets the ID field of the Name Server response",6,null],[11,"get_flags","","Gets flags (and opcodes) in the header of the Name Server response",6,null],[11,"get_section_count","","Returns a count of how many records exist in the given section",6,null],[11,"get_record","","Gets a record from a section. Returns an error if index is out of bounds\n(use get_section_count()). Also returns an error (at run-time) if assigned into\na Record of the wrong type.",6,null],[11,"questions","","",6,null],[11,"answers","","",6,null],[11,"authorities","","",6,null],[11,"additional_records","","",6,null],[11,"next","","",7,null],[0,"record","","",null,null],[3,"Record","resolv::record","A DNS response record of a particular type",null,null],[12,"name","","",8,null],[12,"class","","",8,null],[12,"ttl","","",8,null],[12,"data","","",8,null],[3,"A","","",null,null],[12,"address","","",9,null],[3,"NS","","",null,null],[12,"dname","","",10,null],[3,"CNAME","","",null,null],[12,"cname","","",11,null],[3,"SOA","","",null,null],[12,"mname","","",12,null],[12,"rname","","",12,null],[12,"serial","","",12,null],[12,"refresh","","",12,null],[12,"retry","","",12,null],[12,"expire","","",12,null],[12,"minimum","","",12,null],[3,"PTR","","",null,null],[12,"dname","","",13,null],[3,"MX","","",null,null],[12,"preference","","",14,null],[12,"exchange","","",14,null],[3,"TXT","","",null,null],[12,"dname","","",15,null],[3,"AAAA","","",null,null],[12,"address","","",16,null],[4,"Class","","DNS Class.",null,null],[13,"IN","","Internet Class. By far the most common.",2,null],[13,"CSNET","","CSNET class (obsoleted)",2,null],[13,"CHAOS","","CHAOS class (https://en.wikipedia.org/wiki/Chaosnet)",2,null],[13,"HS","","Hesoid (https://en.wikipedia.org/wiki/Hesiod_(name_service))",2,null],[13,"NONE","","None. Used for "name is not in use" requests.",2,null],[13,"ANY","","Any. Used for "name is in use" requests.",2,null],[4,"RecordType","","This is a simple u16 value indicating the type of a resource record, and is equal in\nvalue to `::libresolv_sys::__ns_type`",null,null],[13,"A","","",17,null],[13,"NS","","",17,null],[13,"MD","","",17,null],[13,"MF","","",17,null],[13,"CNAME","","",17,null],[13,"SOA","","",17,null],[13,"MB","","",17,null],[13,"MG","","",17,null],[13,"MR","","",17,null],[13,"NULL","","",17,null],[13,"WKS","","",17,null],[13,"PTR","","",17,null],[13,"HINFO","","",17,null],[13,"MINFO","","",17,null],[13,"MX","","",17,null],[13,"TXT","","",17,null],[13,"RP","","",17,null],[13,"AFSDB","","",17,null],[13,"X25","","",17,null],[13,"ISDN","","",17,null],[13,"RT","","",17,null],[13,"NSAP","","",17,null],[13,"NSAP_PTR","","",17,null],[13,"SIG","","",17,null],[13,"KEY","","",17,null],[13,"PX","","",17,null],[13,"GPOS","","",17,null],[13,"AAAA","","",17,null],[13,"LOC","","",17,null],[13,"NXT","","",17,null],[13,"EID","","",17,null],[13,"NIMLOC","","",17,null],[13,"SRV","","",17,null],[13,"ATMA","","",17,null],[13,"NAPTR","","",17,null],[13,"KX","","",17,null],[13,"CERT","","",17,null],[13,"A6","","",17,null],[13,"DNAME","","",17,null],[13,"SINK","","",17,null],[13,"OPT","","",17,null],[13,"APL","","",17,null],[13,"TKEY","","",17,null],[13,"TSIG","","",17,null],[13,"IXFR","","",17,null],[13,"AXFR","","",17,null],[13,"MAILB","","",17,null],[13,"MAILA","","",17,null],[13,"ANY","","",17,null],[13,"ZXFR","","",17,null],[11,"eq","resolv","",2,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"from_rr_class","","",2,{"inputs":[{"name":"u16"}],"output":{"name":"result"}}],[11,"clone","resolv::record","",9,null],[11,"fmt","","",9,null],[11,"get_record_type","","",9,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",9,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",10,null],[11,"fmt","","",10,null],[11,"get_record_type","","",10,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",10,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",11,null],[11,"fmt","","",11,null],[11,"get_record_type","","",11,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",11,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",12,null],[11,"fmt","","",12,null],[11,"get_record_type","","",12,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",12,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",13,null],[11,"fmt","","",13,null],[11,"get_record_type","","",13,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",13,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",14,null],[11,"fmt","","",14,null],[11,"get_record_type","","",14,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",14,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",15,null],[11,"fmt","","",15,null],[11,"get_record_type","","",15,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",15,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",16,null],[11,"fmt","","",16,null],[11,"get_record_type","","",16,{"inputs":[],"output":{"name":"recordtype"}}],[11,"extract","","",16,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[8,"RecordData","","For internal use.",null,null],[10,"get_record_type","","Get type of record",18,{"inputs":[],"output":{"name":"recordtype"}}],[10,"extract","","Convert from low level resource record. For internal use.",18,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"clone","","",8,null],[11,"fmt","","",8,null],[11,"extract","","For internal use.",8,{"inputs":[{"name":"message"},{"name":"rr"}],"output":{"name":"result"}}],[11,"eq","","",17,null],[11,"clone","","",17,null],[11,"fmt","","",17,null],[11,"eq","resolv","",3,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"new","","",19,{"inputs":[],"output":{"name":"option"}}],[11,"option","","Set or unset an option",19,null],[11,"search","","Lookup the record. Applies the search algorithm to the domain name given\n(if not fully qualified, it completes it using rules specified in `resolv.conf`\nsearch entries). In addition, this also searches your hosts file. Applies\nrecursion if available and not turned off (it is on by default).",19,null],[11,"query","","Lookup the record. Does not apply the search algorithm, so `dname` must be a complete\ndomain name, and only DNS will be consulted (not your hosts file). Applies recursion\nif available and not turned off (it is on by default).",19,null]],"paths":[[3,"Flags"],[4,"Section"],[4,"Class"],[4,"ResolverOption"],[4,"ResolutionError"],[4,"Error"],[3,"Response"],[3,"RecordItems"],[3,"Record"],[3,"A"],[3,"NS"],[3,"CNAME"],[3,"SOA"],[3,"PTR"],[3,"MX"],[3,"TXT"],[3,"AAAA"],[4,"RecordType"],[8,"RecordData"],[3,"Resolver"]]}; initSearch(searchIndex);