如果未附加域名,则无法解析 Android 浏览器主机名 [英] Android Browser hostnames does not get resolved if domain name is not appended

查看:24
本文介绍了如果未附加域名,则无法解析 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 租用时根据报告的机器名称向本地 DNS 服务器添加一个条目.

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: 假设您的 DNS 服务器会自动更新自身以反映 DHCP 租约,则存在一个已知问题,即 Android 设备不使用 DHCP 提供的 DNS 搜索路径.因此,只会解析完全限定的域名称.

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/问题/详细信息?id=8030

作为一种解决方法,请尝试为您尝试访问的设备查找 FQDN.

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

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

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