Skip to content
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

容器内部ping特定域名ping不通,不是网络问题。 #2437

Open
misterlee3331 opened this issue Jul 15, 2024 · 4 comments
Open

容器内部ping特定域名ping不通,不是网络问题。 #2437

misterlee3331 opened this issue Jul 15, 2024 · 4 comments

Comments

@misterlee3331
Copy link

Qinglong version

2.11.3

Steps to reproduce

软件:vmware pro 15
版本:centos8.0

What is expected?

下图:直接ping百度域名可以ping通,ping这个taizhou的域名ping不通,但是ping这个域名的ip又可以ping通
IMG_20240715_090314

What is actually happening?

下图: 而在宿主机这,ping taizhou这个域名又可以ping通。
IMG_20240715_085845

System Info

No response

Any additional comments?

No response

@zjk2017
Copy link

zjk2017 commented Jul 27, 2024

Qinglong version
3.10debain v2.17.5

Steps to reproduce
软件:docker-compose
版本:debain11
按照@misterlee3331 的测试方法 我测试了taizhou和如下域名, 我也出现了这种同样的问题
容器内
root@fde1e514b58e:/ql $ ping hongke.changhong.com
ping: bad address 'hongke.changhong.com'

root@fde1e514b58e:/ql $ ping 119.3.183.149
PING 119.3.183.149 (119.3.183.149): 56 data bytes
64 bytes from 119.3.183.149: seq=0 ttl=44 time=25.830 ms
64 bytes from 119.3.183.149: seq=1 ttl=44 time=25.739 ms

看到过有关的帖子说改成host模式能解决 问一下除了host模式能从根本解决部分域名不通的问题吗 或者说有什么方法能见到一个不通的手动配置dns来临时解决 看见一个不通的加一个

@whyour
Copy link
Owner

whyour commented Aug 1, 2024

Qinglong version 3.10debain v2.17.5

Steps to reproduce 软件:docker-compose 版本:debain11 按照@misterlee3331 的测试方法 我测试了taizhou和如下域名, 我也出现了这种同样的问题 容器内 root@fde1e514b58e:/ql $ ping hongke.changhong.com ping: bad address 'hongke.changhong.com'

root@fde1e514b58e:/ql $ ping 119.3.183.149 PING 119.3.183.149 (119.3.183.149): 56 data bytes 64 bytes from 119.3.183.149: seq=0 ttl=44 time=25.830 ms 64 bytes from 119.3.183.149: seq=1 ttl=44 time=25.739 ms

看到过有关的帖子说改成host模式能解决 问一下除了host模式能从根本解决部分域名不通的问题吗 或者说有什么方法能见到一个不通的手动配置dns来临时解决 看见一个不通的加一个

whyour/qinglong:debain 和 whyour/qinglong:debian-python3.10 测试没问题
image

@adnogpu
Copy link

adnogpu commented Aug 2, 2024

这很明显dns服务器问题啊 换个dns服务器就行 223.5.5.5 这是阿里云的 腾讯云的也行

@521141
Copy link

521141 commented Oct 24, 2024

@misterlee3331 用nslookup或者dig测测能否正确查询到ip,查询到的ip是否正确……这种情况大概率是你dns有问题,如果这两个工具都没有那就问gpt,让他教你怎么装……

$ nslookup hongke.changhong.com
Server:         127.0.0.11
Address:        127.0.0.11:53

Non-authoritative answer:

Non-authoritative answer:
Name:   hongke.changhong.com
Address: 119.3.183.149

$ ping hongke.changhong.com
PING hongke.changhong.com (119.3.183.149): 56 data bytes
64 bytes from 119.3.183.149: seq=0 ttl=42 time=47.969 ms
64 bytes from 119.3.183.149: seq=1 ttl=42 time=47.590 ms
64 bytes from 119.3.183.149: seq=2 ttl=42 time=46.568 ms

以下域名是我随便输入的,没有解析记录。如果ping这个域名,那么就会出现如下问题。

$ ping hongsjsjsbud.com
ping: bad address 'hongsjsjsbud.com'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants