Re: [Exim] dns_again_means_nonexist don't work for verify = …

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Justo Alonso
CC: exim-users
Assunto: Re: [Exim] dns_again_means_nonexist don't work for verify = reverse_host_lookup
On Thu, 30 Oct 2003, Justo Alonso wrote:

> typedef enum __ns_rcode {
>         ns_r_noerror = 0,       /* No error occurred. */
>         ns_r_formerr = 1,       /* Format error. */
>         ns_r_servfail = 2,      /* Server failure. */
>         ns_r_nxdomain = 3,      /* Name error. */
>         ns_r_notimpl = 4,       /* Unimplemented. */
>         ns_r_refused = 5,       /* Operation refused. */
>         /* these are for BIND_UPDATE */
>         ns_r_yxdomain = 6,      /* Name exists */
>         ns_r_yxrrset = 7,       /* RRset exists */
>         ns_r_nxrrset = 8,       /* RRset does not exist */
>         ns_r_notauth = 9,       /* Not authoritative for zone */
>         ns_r_notzone = 10,      /* Zone of record different from zone section
> */
>         ns_r_max = 11,
>         /* The following are TSIG extended errors */
>         ns_r_badsig = 16,
>         ns_r_badkey = 17,
>         ns_r_badtime = 18
> } ns_rcode;

>
> I supose, that h_errno = 2 -> ns_r_servfail ... no ??


The return values from res_search() are defined in
/usr/include/netdb.h as follows:

/* Possible values left in `h_errno'.  */
#define NETDB_INTERNAL  -1      /* See errno.  */
#define NETDB_SUCCESS   0       /* No problem.  */
#define HOST_NOT_FOUND  1       /* Authoritative Answer Host not found.  */
#define TRY_AGAIN       2       /* Non-Authoritative Host not found,
                                   or SERVERFAIL.  */
#define NO_RECOVERY     3       /* Non recoverable errors, FORMERR, REFUSED,
                                   NOTIMP.  */
#define NO_DATA         4       /* Valid name, no data record of requested
                                   type.  */
#define NO_ADDRESS      NO_DATA /* No address, look for MX record.  */



--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.