HN 用户提问:如何在没有 root/管理员权限的情况下使用本地主机名?
7 分•作者: terry_hc•8 个月前
我正在寻找一种简单的方法,在本地定义主机名以供内部使用,类似于 `/etc/hosts`,但不需要超级用户权限。在本地或局域网内运行解析器,超出了“简单”的范畴。主要针对的是 Web 浏览器,所以适用于 Firefox 和/或 Chromium 的巧妙浏览器扩展会非常棒。如果解析也能在浏览器之外进行,那将是一个不错的额外功能。
感谢任何建议。
查看原文
I'm looking for a simple way to locally define hostnames for internal use, think /etc/hosts, but without the requirement of superuser privileges. Running a resolver locally, or within the LAN, falls outside the realm of "simple". The subject is primarily the web browser, so a clever browser extension for Firefox and/or Chromium would work great. If resolution could also happen outside the browser that would be a nice bonus.<p>Thankful for any suggestions.