将域名重定向到本地网络内部ip(不需要外部访问)
我想要执行以下操作:
在本地网络上打开网络浏览器。输入 mydevice.com(或类似的内容)并将浏览器重定向到实际设备(192.168.1.x),
原因是,它确实不适合我。它适用于托管网页的产品,我不希望用户必须输入 IP 地址。
另外,我知道 dyndns.org 和相关网站。我想知道是否没有其他(更简单的)替代方案,因为我没有任何要求从外部进入(即没有外部访问)。我几乎只想告诉我的路由器,每当它看到对某些虚构域名的请求时,就重定向到本地网络上的特定 IP 地址。那么唯一的问题是,如果这样的事情可能的话,指导用户进行设置是否足够容易。
这样的事可能吗?
PS - 有人可能必须更改我的问题标题...我不知道这叫什么,这使得一开始就很难用谷歌搜索。所以我转向SO,但很自然地,在写一个特定的标题时遇到困难
i want to do the following:
open a web browser on my local network. type in mydevice.com(or something similar) and have the browser redirect to the actual device (192.168.1.x)
the reason is, it really is NOT for me. it is for a product that hosts a web page and i do not want the users to have to type in the IP address.
also, i am aware of dyndns.org and related sites. i was wondering though if there isnt another (easier) alternative since i have no requirement whatsoever to get IN from OUTSIDE (i.e. no external access). i pretty much just want to tell my router whenever it sees a request for some made up domain name, to instead just redirect to a specific IP address on the local network. the only question then will be, if such a thing is possible, is it easy enough to instruct said users to set up.
is such a thing possible?
ps - somebody may have to change my problem title... i didnt know what this was called, which made it hard to google in the first place. so i turn to SO, but then naturally, have trouble writing a specific title
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用主机文件。请参阅 Wiki Hosts 文件条目了解适合您操作系统的格式。
You could use a Hosts file. See Wiki Hosts file entry for the format for your OS.