iPhone上是否存在hosts文件?如何改变它? [英] Does hosts file exist on the iPhone? How to change it?

查看:26
本文介绍了iPhone上是否存在hosts文件?如何改变它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个查询服务器的应用程序.在我的 Mac 中,我使用主机文件将 dns 更改为指向局域网内的本地服务器.

I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network.

现在我需要用我的 iPhone 测试它,问题是我的 iPhone 由于缺少 dns 配置而无法识别该服务器.

Now I need to test it with my iPhone, the problem is that my iPhone does not recognize that server due to the missing configuration for dns.

在我的 Mac 或 Windows 上,我只需将:192.168.0.20 http://www.google.com 添加到主机文件中.

On my Mac or Windows, I simply add: 192.168.0.20 http://www.google.com to the hosts file.

现在如何让我的 iPhone 知道 URL:http://www.google.com ?

Now how do I let my iPhone know the URL: http://www.google.com ?

推荐答案

这并不能直接回答您的问题,但确实可以解决您的问题...

This doesn't directly answer your question, but it does solve your problem...

你有什么牌子的路由器?您的路由器固件可能允许您为本地网络设置 DNS 记录.这就是我对 Tomato 固件

What make of router do you have? Your router firmware may allow you to set DNS records for your local network. This is what I do with the Tomato firmware

这篇关于iPhone上是否存在hosts文件?如何改变它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆