当我尝试在谷歌应用程序引擎中使用urllib2获取网址时,我得到了以下错误:
error: An error occured while connecting to the server: Unable to fetch URL: http://www.google.com Error: [Errno 10106] getaddrinfo failed
这是调用urllib2打开读取方法的代码:
def get(self):
self.write(urllib2.urlopen("http://www.google.com").read())
s
Hoster与服务器一起提供自己的DNS服务器。在具有主机DNS的物理服务器上,解析器可以工作,但是当我使用相同的DNS主机安装KVM / QEMU虚拟服务器时,ping通过,站点的地址没有解析。
当我更改为公共谷歌8.8.8.8 -一切正常运作,如预期。我换回DNS主机,重新启动-- ping是开的,没有解析。我怎样才能检查这个问题?
Hoster online net - DNS 62.210.16(6/7)
#mtr google.com
Failed to resolve host: Temporary failure in name resolution
# traceroute
我尝试了从Firefox获得的所有故障排除,但都失败了,但我仍然得到了相同的错误:
The following error was encountered while trying to retrieve the URL: http://vodlocker.com/wv420ypnzarv
Connection to host failed.
The system returned: (110) Connection timed out
The remote host or network may be down. Please try the request again.
我可以用我
在OCP 4.3上,从仪表板“复制登录命令”生成的oc登录命令
oc login --token=asdfghjk... --server=https://api.xxx.com:6443
在以下方面失败:
error: dial tcp: lookup api.xxx.com on 192.168.0.1:53: no such host - verify you have provided the correct host and port and that the server is currently running.
当我将集群的公共ip替换为主机名时,它可以工作。
oc login
由于我的路由器不解析LAN设备的主机名,所以我使用DNSMASQ设置服务器作为DNS。
DNS Server Specs
----------------
OS: Ubuntu Server
LAN IP: 192.168.1.4
我在网络上有第二台流媒体服务器,它运行kodi和apache2,这样我就可以通过我编写的web接口来控制这台机器。
Media Server Specs
------------------
LAN IP: 192.168.1.10
HOSTNAME: media.lan
我的路由器被配置成使用本地DNS服务器进行DNS查找。我还在DNS服务器上为我的媒
我有一个奇怪的情况,其中一个服务名称,假设docker swarm中的'myservice‘与我的网络中的一个实际主机共享该名称。有时'myservice‘的解析会发现主机IP地址失败,因为它与我正在运行的任何东西都没有关系。有没有办法以一种方式给'myservice‘,迫使docker用它自己的服务来解决它?这是“tasks.myservice”还是更好的?Docker swarm CE 17.09是正在使用的版本