ivmm
V2EX  ›  问与答

centos 修改 dns 后,要 ping 一下才能访问

  •  
  •   ivmm · Mar 17, 2016 · 1680 views
    This topic created in 3780 days ago, the information mentioned may be changed or developed.

    将内网 DNS 修改成 223.5.5.5 ,然后 service network restart

    但是光是 yum update 就会提示

    One of the configured repositories failed (Unknown),
    以下省略
    

    然后就 ping 以下目标地址, 前几次 ping 不出主机 然后多试几次就好了,就可以正常 update 了

    5 replies    2016-03-18 10:08:17 +08:00
    pupboss
        1
    pupboss  
       Mar 17, 2016
    debian 也是,目测是阿里云的锅
    ivmm
        2
    ivmm  
    OP
       Mar 17, 2016
    @pupboss 改成 119.29.29.29 也是如此
    pupboss
        3
    pupboss  
       Mar 17, 2016
    @ivmm 我的解决方案是手动改 hosts ,已经完美用了半个月
    ivmm
        4
    ivmm  
    OP
       Mar 17, 2016 via Android
    @pupboss 噗。 表示我不是想上个谷歌,是不被污染
    pupboss
        5
    pupboss  
       Mar 18, 2016
    @ivmm 我也没说翻墙....debian 的 apt-get update ,国外源也会说连接不通, ping 一下再 update 就好了

    难道你说的不是这个问题?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5190 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 05:52 · PVG 13:52 · LAX 22:52 · JFK 01:52
    ♥ Do have faith in what you're doing.