[英]How necessary is DNS Server to run an ASP.NET web app on IIS?
Assuming a Windows Server 2012 VPS: 假设Windows Server 2012 VPS:
It seems that many tutorials include the setting up of DNS Server (setup of forward lookup zones, and A record) as part of the basic steps to deploy and run an ASP.NET web application on IIS. 看来,许多教程都包括DNS服务器的设置(正向查找区域和A记录的设置),作为在IIS上部署和运行ASP.NET Web应用程序的基本步骤的一部分。
I'm slightly confused, because within IIS manager you can set the bindings ( IP address, URL, SSL, port) of a web application. 我有些困惑,因为您可以在IIS管理器中设置Web应用程序的绑定(IP地址,URL,SSL,端口)。 Wouldn't this alone not suffice to correctly route incoming requests to the correct web application?
仅此一项就不足以将传入的请求正确地路由到正确的Web应用程序吗?
What would be the advantage to running DNS Server? 运行DNS服务器有什么好处?
IIS Manager can only manage IIS related Windows settings, but to make a site work you need much more settings than that. IIS管理器只能管理与IIS相关的Windows设置,但是要使站点正常工作,您需要的设置要多得多。
DNS settings are critical to direct web browsers to your side. DNS设置对于将Web浏览器定向到您的身边至关重要。 Nobody uses IP addresses to access a site, so a typical URL uses domain name.
没有人使用IP地址访问站点,因此典型的URL使用域名。 That requires DNS to translate the domain name to an IP address so that browsers can send HTTP packets to the proper location.
这就要求DNS将域名转换为IP地址,以便浏览器可以将HTTP数据包发送到正确的位置。
IIS Manager could not manage that for you, as which DNS product to use or how to configure it is usually vendor specific and out of IIS's scope. IIS管理器无法为您进行管理,因为要使用哪个DNS产品或如何配置它通常是特定于供应商的,并且超出了IIS的范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.