<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(C:\Program Files\Netease\网易闪电邮\\data\scrollbar.css); -->p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; p{margin:0px;padding:0px;}; </STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em};                                                                         OL, UL{margin-Top: 0px; margin-Bottom: 0px};                                                                    p{margin-Top:0em; margin-Bottom:0px; padding:0px;};                                                                     body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;};                                                                        </STYLE>

<META name=GENERATOR content="MSHTML 9.00.8112.16434"><BASE target=_blank><BASE 
target=_blank><BASE target=_blank><BASE target=_blank><BASE target=_blank><BASE 
target=_blank><BASE target=_blank><BASE target=_blank></HEAD>
<BODY 
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" 
topMargin=10 marginwidth="0" marginheight="0"><STATIONERY>
<DIV>
<DIV><FONT color=#000000 size=3 face=宋体>sorry for my poor english 
first.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000 size=3 face=宋体>I run nginx as a reverse proxy 
server,and set a dns server for it.</FONT></DIV>
<DIV>I add the dns for the nginx at http directive:</DIV>
<DIV>    resolver 192.168.0.106;</DIV>
<DIV>In nginx configuration:</DIV>
<DIV>proxy_pass <A href="http://test.nginx.org">http://test.nginx.org</A>;</DIV>
<DIV>and the dns server configuration:</DIV>
<DIV>test.nginx.org point to 192.168.0.100.</DIV>
<DIV>but in debug log:</DIV>
<DIV>2011/08/15 15:51:45 [error] 16819#0: *1 connect() failed (111: Connection 
refused) while connecting to upstream, client: 192.168.0.105, server: nginx.org, 
request: "GET / HTTP/1.1", upstream: <A 
href="http://206.251.255.63:80/">http://206.251.255.63:80/</A>, host: 
"test.nginx.org"</DIV>
<DIV> </DIV>
<DIV>it show the nginx resole test.nginx.org from system defined dns.</DIV>
<DIV> </DIV>
<DIV>only when I configuration nginx:</DIV>
<DIV>proxy_pass <A href="http://$http_host">http://$http_host</A>;</DIV>
<DIV> </DIV>
<DIV>the nginx resolve through the define dns.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>How to only use the defined dns for nginx even the proxy_pass source is a 
domain?</DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 
face=Verdana>2011-08-15</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN 
id=_FlashSignName>chinix</SPAN></FONT></DIV></FONT></DIV></STATIONERY></BODY></HTML>