ping: unknown host www.baidu.com
1、開發人員說伺服器ping不通外網
[root@cs2 ~]# ping
ping: unknown host
2、經排查,在配置檔案中加了個dns
[root@cs2 ~]# grep hosts /etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns
3、可以ping通
[root@cs2 ~]# ping
PING (220.181.111.188) 56(84) bytes of data.
64 bytes from 220.181.111.188: icmp_seq=1 ttl=57 time=8.61 ms
64 bytes from 220.181.111.188: icmp_seq=2 ttl=57 time=3.49 ms
參考文章:http://blog.csdn.net/xionglang7/article/details/7341653
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27126919/viewspace-1680667/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mac ping:can not resolve www.baidu.com:Unknown hostMacAI
- unknown host 主機名
- Centos 6 DNS 配置 解決 Unknown hostCentOSDNS
- Unknown host ‘XXXX: nodename nor servname provided, or not known‘. You may need to adjust the proxyIDE
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- 虛擬機器 與 host主機,無法ping通的問題虛擬機
- 能ping通虛擬機器,但snmp報文 Destination unreachable(Host administratively prohibited虛擬機
- Gradle專案Build的時候,頻繁報Unknown host 'jcenter.bintray.com' 錯誤GradleUI
- [GXYCTF2019]Ping Ping PingTF2
- [GXYCTF2019]Ping Ping Ping 1TF2
- [GXYCTF2019]Ping Ping Ping 1 - Xxiaoma解題TF2
- proxy_set _header Host $host;Header
- 按下www.baidu.com發生什麼AI
- 請求 www.baidu.com 背後的故事AI
- Unknown custom element: <> -
- Ping命令
- ping 命令
- ping 域名
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- Unknown Mother-GooseGo
- [vuex] unknown action typeVue
- mysql Unknown error 1054MySqlError
- net core 的Generic Host 之Generic Host BuilderUI
- Swift 5.0 值得關注的特性:Handle unknown values using "@unknown default"Swift
- 虛擬機器之間能夠ping通,但是建立tcp連線時卻顯示Failed in connect to TCP server: No route to host虛擬機TCPAIServer
- Host是什麼?如何設定host檔案?
- linux系統下如何禁ping和允許pingLinux
- location.host
- Virtualbox host plan
- Unknown Treasure(hdu5446)
- ping ip、域名、埠
- 批量ping主機
- vc實現ping
- Ruby on Rails Ping ++ 支付AI
- VirtualBox Host-only Adapter,Failed to create the host-only adapter 轉APTAI
- 解決方案:可以ping別人,但是別人不能ping我
- redis的repl-ping-slave-period和repl-ping-replica-periodRedis
- Windows Ping伺服器列表,把Ping的通寫入OK檔案,Ping不通的寫入NO檔案Windows伺服器
- use "jsdelivr" to host fileJSVR