mirror of
https://github.com/nginx/nginx.git
synced 2024-11-27 23:49:00 +08:00
take into account DNAME
This commit is contained in:
parent
b8a71b6c1b
commit
19540cd83e
@ -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…
Reference in New Issue
Block a user