如果未附加域名,Android浏览器的主机名不会得到解决 [英] Android Browser hostnames does not get resolved if domain name is not appended

查看:169
本文介绍了如果未附加域名,Android浏览器的主机名不会得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android浏览器中的机器名,在本地主机上打开托管的网站。当我在桌面浏览器上输入机器名称时,它会被解决,但是在Android设备中,我得到的网页不可用。
服务器已配置为正确处理DNS,我们没有看到任何错误。请帮助。

I am trying open a site hosted on my localhost using machine name in an android browser. When I type in machine name on a desktop browser , it gets resolved, but in an android device I get webpage not available. Server has been configured to handle DNS correctly and we do not see any errors.Please help.

谢谢

推荐答案

有两件事在这里玩...

There's two things at play here...

1:您的机器名称得到解决?有几种机制。

1: How is your machine name getting resolved? There are several mechanisms for this.

Windows机器使用NetBIOS / WINS / ActiveDirectory的组合来发现本地网络上的其他计算机。 (Linux / Mac机器可以访问此数据SAMBA,假设已启用。)

Windows machines use a combination of NetBIOS/WINS/ActiveDirectory to discover other machines on the local network. (Linux/Mac machines can access this data SAMBA, assuming it's enabled.)

Mac使用Bonjour / Zeroconf找到对方。

Macs use Bonjour/Zeroconf to find each other.

某些家庭路由器(例如运行Tomato的路由器)将根据报告的机器名称向DHCP服务器添加一个条目。

Some home routers (e.g. routers running Tomato) will add an entry to a local DNS server when a DHCP lease is granted, based on the machine name being reported.

Android没有安装SAMBA或Zeroconf服务,所以我们必须依靠您的DNS服务器提供的服务。

Android doesn't have SAMBA or Zeroconf services installed, so we have to rely on what's provided by your DNS server.

2: strong> 假设您的DNS服务器自动更新自身以反映DHCP租约,则Android设备不会使用DHCP提供的DNS搜索路径存在一个已知问题。因此,仅解决完全合格的doman名称。

2: Assuming your DNS server automatically updates itself to reflect DHCP leases, there is a known issue where Android devices don't use the DNS search path provided by DHCP. As a result, only fully qualified doman names are resolved.

以下是错误报告: http://code.google.com/p/android/issues/detail?id=8030

作为解决方法,请尝试找到您要访问的设备的FQDN。

As a workaround, try to find the FQDN for the devices you're trying to access.

这篇关于如果未附加域名,Android浏览器的主机名不会得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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