-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coredns解析失败 #260
Comments
实际是可以解析服务名的,通过 |
新版本,pod中直接使用nslookup的话需要使用完整域名 |
感谢回复,不过刚多次验证了,使用完整的域名进行
或者如下错误:
|
....本地集群测试如下
|
嗯,我刚本地集群测试偶尔也会成功,但是大概率失败。阿里公有云ECS,就没成功过。。 |
....本地集群测试如下
|
1 similar comment
....本地集群测试如下
|
nslookup测试相比以前还是有报错信息,只要不影响应用正常使用就好啦 |
我也遇到同样的问题,我用的是kubedns,用busybox容器检测dns,发现dns无法解析 ** server can't find kubernetes: NXDOMAIN *** Can't find kubernetes: No answer Non-authoritative answer: *** Can't find kubernetes.default.svc.cluster.local.: No answer |
我发现是busybox版本问题,busybox latest的镜像在10天前更新了,我换成老一点的镜像busybox:1.28.3就能解析出dns信息 |
@Costriod 的确是这个镜像版本的问题, 很坑 |
我也遇到了同样问题,但是dns正常使用 |
管用! |
管用latest,好坑
管用 |
好吧,不知道,有没有人跟我一样,不是busybox版本问题 |
确实,降级到1.28.3问题解决 |
环境:
单master模式,其他hosts配置默认使用的
example/hosts.s-master.example
集群部署完成后,测试dns解析:
结果报以下错误:
期望结果:
pod中
/etc/resolv.conf
文件内容:The text was updated successfully, but these errors were encountered: