Skip to content

Nginx unable to start with a domain name that cannot be resolved #32

Open
@anshul291995

Description

@anshul291995

Hi, I was under the impression that this module allows nginx to startup even when domain name can not be resolved ; but for some reason I am not able to reproduce this.

My upstream configuration is:

upstream pool1{                                                                                       
  server www.bfdbjdfvlkfdkjfdk.com:80 resolve max_fails=0;                                                      
  keepalive 16;                                                                                                 
  check interval=30000 rise=1 fall=3 timeout=30000 type=http default_down=false mark_down=false min_servers=1;  
  check_http_send 'GET / HTTP/1.1' 'header=Host: 127.0.0.1';                                                    
}   

I get this error on reload: nginx:

[error] host not found in upstream "www.bfdbjdfvlkfdkjfdk.com:80" in /etc/nginx/nginx.conf:165

I am, maybe, missing a ton here. Can someone please help me regarding this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions