openWRT设置host文件

putty连接上路由器。

创建并编辑myhosts文件:

vi /etc/myhosts

设置host:

回到openWRT,网络→DHCP/DNS→HOSTS和解析文件→额外的HOSTS文件,增加:

/etc/myhosts

Leave a Reply

Your email address will not be published. Required fields are marked *