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
- Linux - Ping: Unknown Host www.xxx.comLinux
- linux下ping: unknown host錯誤解決方案Linux
- Centos 6 DNS 配置 解決 Unknown hostCentOSDNS
- 【Ubuntu】unknown host問題解決辦法Ubuntu
- 解決Mac java.net Local host name unknown error的方法MacJavaError
- 安裝RAC,Actual Result: Unknown Host Exception has Occurred錯誤解決Exception
- mysql error 2005 - Unknown MySQL server host 'localhost'(11001)MySqlErrorServerlocalhost
- 虛擬機器 與 host主機,無法ping通的問題虛擬機
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- Gradle專案Build的時候,頻繁報Unknown host 'jcenter.bintray.com' 錯誤GradleUI
- Unknown host ‘XXXX: nodename nor servname provided, or not known‘. You may need to adjust the proxyIDE
- 按下www.baidu.com發生什麼AI
- 請求 www.baidu.com 背後的故事AI
- 能ping通虛擬機器,但snmp報文 Destination unreachable(Host administratively prohibited虛擬機
- proxy_set _header Host $host;Header
- ORACLE RAC UNKNOWNOracle
- ping 命令
- Ping命令
- Host是什麼?如何設定host檔案?
- mac修改hostMac
- ubuntu配置HOSTUbuntu
- Google:host配置Go
- ubuntu修改hostUbuntu
- net core 的Generic Host 之Generic Host BuilderUI
- [vuex] unknown action typeVue
- Unknown Mother-GooseGo
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- linux pingLinux
- Grid Control remove host and re-add hostREM
- URL host 屬性
- nginx host常用配置Nginx
- Swift 5.0 值得關注的特性:Handle unknown values using "@unknown default"Swift
- mysql Unknown error 1054MySqlError
- linux系統下如何禁ping和允許pingLinux
- vc實現ping
- Ruby on Rails Ping ++ 支付AI
- 批量ping主機