V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ivmm
V2EX  ›  问与答

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

  •  
  •   ivmm · 2016-03-17 21:37:36 +08:00 · 1283 次点击
    这是一个创建于 3016 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    但是光是 yum update 就会提示

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

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

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

    难道你说的不是这个问题?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1034 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.