我在虚拟机内的ubuntu上有本地networking服务器。 目前我通过IP访问它
http://10.0.11.111
是否有可能我可以DNS的名称,只能在本地networking上工作的IP
http://companyserver.com
是。 看/etc/hosts/ ,你想要这样的东西:
/etc/hosts/
10.0.11.111 companyserver.local
(除非必须使用.com,否则这是不好的做法)