Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domain in variable not process by nginx resover server #1441

Open
carlvine500 opened this issue Mar 23, 2020 · 0 comments
Open

domain in variable not process by nginx resover server #1441

carlvine500 opened this issue Mar 23, 2020 · 0 comments

Comments

@carlvine500
Copy link

Ⅰ. Issue Description

tengine version 2.3.2
nginx and dns config as following:

$ cat nginx.conf
...
resolver 10.254.0.2 valid=30s;
server {
    listen          80;
    server_name dns.test.successchannel.cn;
    location / {
        set $bak "http://www.baidu.com";
        proxy_pass $bak;
    }
}
...
$cat /etc/nginx/resolve.conf
nameserver 8.8.8.8

10.254.0.2 is our dns server, when we visit varirable $bak which contain "www.baidu.com" ,
"www.baidu.com" will not resolved by 10.254.0.2 , it resolved by 8.8.8.8

Ⅱ. Describe what happened

Ⅲ. Describe what you expected to happen

we expect varirable $bak which contain "www.baidu.com" will resolve by 10.254.0.2 ,but not 8.8.8.8

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

centos7.4

  • Tengine version (use sbin/nginx -V):
    2.3.2
  • OS (e.g. from /etc/os-release):
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant