mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
take into account DNAME
This commit is contained in:
parent
b8a71b6c1b
commit
19540cd83e
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue