take into account DNAME

This commit is contained in:
Igor Sysoev 2008-04-10 17:12:21 +00:00
parent b8a71b6c1b
commit 19540cd83e
2 changed files with 4 additions and 0 deletions

View File

@ -1186,6 +1186,9 @@ ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t last,
} else if (qtype == NGX_RESOLVE_CNAME) {
cname = &buf[i] + sizeof(ngx_resolver_an_t);
i += sizeof(ngx_resolver_an_t) + len;
} else if (qtype == NGX_RESOLVE_DNAME) {
i += sizeof(ngx_resolver_an_t) + len;
}
}

View File

@ -17,6 +17,7 @@
#define NGX_RESOLVE_PTR 12
#define NGX_RESOLVE_MX 15
#define NGX_RESOLVE_TXT 16
#define NGX_RESOLVE_DNAME 39
#define NGX_RESOLVE_FORMERR 1
#define NGX_RESOLVE_SERVFAIL 2