Create hostname for a computer on the network

我是研究僧i 提交于 2019-12-11 07:49:29

问题


I would like a hostname like mycomp.net and be assigned through DNS of the router to go to an internal ip address.

The end result should be people within the network can use that hostname to connect to the internal server, and outsiders cannont


回答1:


For the computer that is running it, simply use the host file. Could do the same for others if there is only a handful...

For the other computers re the router, it will depend on the router you have or the firewall depeding on setup. Can you please advise...

Ps. I do this with pfsesnse but not sure if you can/do run this....

Note: host file sits: C:\Windows\System32\drivers\etc

usually....




回答2:


If you're using a router with DD-WRT installed, you can use the DHCP Server options in the Services tab to set hostnames based on MAC addresses. Combined with the "LAN Domain" option, this allows you to access machines via my_computer.my_domain.local

If you're not using a router with DD-WRT installed, you should try it out.



来源:https://stackoverflow.com/questions/12548867/create-hostname-for-a-computer-on-the-network

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!