为IP地址分配URL(IP地址映射到主机名) [英] Assign URL for IP Adress (IP adresses mapping to host names)

查看:536
本文介绍了为IP地址分配URL(IP地址映射到主机名)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将IP地址(192.164.5.19)的域名更改为www.anyname.com?



当前我创建了一个网站并使用它来发布IIS7。它在内联网中。现在我想通过域名而不是ip地址访问网站。



任何人都可以帮我解决这个问题。



注意:网络服务器使用的是普通PC而不是服务器。

How can I change domain name for ip address (192.164.5.19) to www.anyname.com?

Current I made a website and published it by using iis7. It is in the intranet. Now I want to access the website by a domain name and not by ip address.

can anyone help me for with this problem.

Note: The web-server were use is normal PC not a server.

推荐答案

你可以'只是决定使用域名作为IP地址的快捷方式,即使IP是本地地址 - 这将允许网络钓鱼者将请求转移到您的银行,例如银行的本地副本登录屏幕并收获整个公司的银行访问详细信息。



为了使用域名,您必须完成注册名称的过程,并且然后必须将其分配给相应的名称服务器(将其链接到服务器IP地址),该服务器将其发布到客户端将用于将其转换回IP并获取网页的各种DNS。



在Intranet中,您可以通过计算机访问该页面ame:
You can't just decide to use a domain name as a "shortcut" to an IP address, even is the IP is a local address - that would allow phishers to "divert" requests to your bank for example to a "local copy" of the bank login screen and harvest a whole companies worth of bank access details.

In order to use a domain name, you have to go through the process of registering the name, and then that must be assigned to the appropriate name server (which links it to the server IP address) which will "Publish" it to the various DNS out there that the client will use to translate it back to an IP and fetch the web page.

Within an intranet, you can access the page via the computername:
http://computername/myPage.aspx

如果您配置IIS来执行此操作:http://social.technet.microsoft.com/wiki/contents/articles/2011.configure- iis-to-host-a-simple-intranet-website.aspx [ ^ ]

provided you configure IIS to do that: http://social.technet.microsoft.com/wiki/contents/articles/2011.configure-iis-to-host-a-simple-intranet-website.aspx[^]


在IIS中选择您的站点并编辑绑定。在主机名中添加绑定a放到www.anyname.com。这将使IIS响应对该主机的请求。您可以通过编辑hosts文件(c:\windows \ system32 \drivers \ etc \ hosts)并添加一行来测试这一点



127.0。 0.1 www.anyname.com



保存文件并在该机器上访问www.anyname.com并在浏览器中看到您的网站。这只适用于该机器,但是,下一步是获取域并对其进行配置,使其指向需要修复并在互联网上的服务器的IP地址。



或者您可以从托管公司租用网站空间,他们将为您完成所有这些工作,您只需上传您的网站文件。
In IIS select your site and edit the bindings. Add a binding an in the hostname put www.anyname.com. That will make IIS respond to requests for that host. You can test this by editing the hosts file (c:\windows\system32\drivers\etc\hosts) and adding a line

127.0.0.1 www.anyname.com

Save the file and on that machine access www.anyname.com in the browser and you should see your site. That only works on that machine, though, your next step is to get the domain and configure it so that it points to the IP address of your server which will need to be fixed and on the internet.

Alternatively you can just rent webspace from a hosting firm who will do all this for you, you just upload your site files.


这篇关于为IP地址分配URL(IP地址映射到主机名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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