xuhaoyangx
V2EX  ›  CentOS

Centos7 已关闭 ipv6 使用 yum 时还是在用 ipv6 地址导致无法正常使用 怎么解决

  •  
  •   xuhaoyangx · Oct 15, 2015 · 5294 views
    This topic created in 3876 days ago, the information mentioned may be changed or developed.

    Centos7 已关闭 ipv6 使用 yum 时还是在用 ipv6 地址导致无法正常使用
    用了网上查的在 sysctl.conf 中加入两条 disable , ifconfig 中也无 ipv6 地址
    但是用 yum 总会解析到 ipv6 上

    这个改怎么解决

    3 replies    2017-01-10 10:37:45 +08:00
    alect
        1
    alect  
       Oct 15, 2015
    看起来是 dns 解析到了 ipv6 地址。。
    试试添加 options single-request-reopen 到 /etc/resolv.conf
    47jm9ozp
        2
    47jm9ozp  
       Oct 15, 2015
    在 /etc/gai.conf 最后加一条

    precedence ::ffff:0:0/96 100
    linuxtro
        3
    linuxtro  
       Jan 10, 2017
    大神这个问题后来怎么解决的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:03 · PVG 04:03 · LAX 13:03 · JFK 16:03
    ♥ Do have faith in what you're doing.