如何在随机服务器上为网站设置DNS? [英] How do I set up DNS for web sites on a random server?

查看:126
本文介绍了如何在随机服务器上为网站设置DNS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个名为Obama,2008 R2的开发服务器,并使用URL http:// Obama为我提供了默认的IIS登录页面。现在我在奥巴马创建了一个名为Alexandria的新网站,该端口绑定了端口80上的主机名'alexandria'。要访问该网站,我必须在奥巴马上正确设置DNS,或者在我的HOSTS文件中添加一个条目,将'亚历山德里亚'指向奥巴马的IP地址。我的问题是使用我的网站,整个开发团队也必须编辑他们的每个HOSTS文件。



我相信我应该创建至少一个A在奥巴马的DNS上记录,也许还有另外一个。然后,当奥巴马收到亚历山大的请求时,它知道该怎么做。我之前已经问过这个问题了,并且回复已经成熟,哦,只是正确设置DNS,甚至没有说我是否必须配置主域DNS,或奥巴马的DNS,或者我必须做什么都?我的机器从域DNS知道什么机器被称为奥巴马,但是我还有什么需要对该DNS做的,或者是否正确设置奥巴马的DNS?



在后一种情况下,有人会详细解释我必须如何配置奥巴马的DNS。我需要哪些条目以及如何创建它们。顺便说一句,我刚刚在奥巴马上添加了DNS作为角色。

We have a dev server called Obama, 2008 R2, and using the URL http://Obama gives me the default 'IIS landing page'. Now I create a new web site on Obama called Alexandria, bound to the host name 'alexandria' on port 80. To access that site, I have to either set the DNS up correctly on Obama, or add an entry to my HOSTS file, pointing 'alexandria' to Obama's IP address. My problem here is to use my site, the whole dev team has to edit each of their HOSTS files as well.

I believe I should be creating at least an A record, and maybe one other, on Obama's DNS. Then, when Obama receives a request for 'alexandria', it knows what to do. I have asked about this before, and responses have been of the ilk, 'Oh, just set up the DNS properly', without even saying whether I must configure the main domain DNS, or Obama's DNS, or do I have to do something on both? My machine knows what machine is called Obama from the domain DNS, but is there anything else I might have to do to that DNS, or is setting Obama's DNS properly enough?

In the latter case, will somebody please explain in high detail how I must go about configuring Obama's DNS. What entries I need and how I go about creating them. BTW, I have only just added DNS as a role on Obama.

推荐答案

这篇关于如何在随机服务器上为网站设置DNS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆