icemanpro
V2EX  ›  问与答

apache 反代动态 dns 问题

  •  
  •   icemanpro · Jun 25, 2018 · 1619 views
    This topic created in 2900 days ago, the information mentioned may be changed or developed.
    apache 反代动态 dns 时,如果 ip 地址没有变动的话,反代正常。但如果 ip 变动了,apache 还是反代到旧 IP 地址,有没有什么办法可以解决?
    3 replies    2018-06-25 11:36:06 +08:00
    nullcoder
        1
    nullcoder  
       Jun 25, 2018
    ???你问的是动态 IP 吧
    a7a2
        2
    a7a2  
       Jun 25, 2018
    写个 shell 每 n 秒 flush 一下 dns 或者可以解决你的问题。https://www.cyberciti.biz/faq/rhel-debian-ubuntu-flush-clear-dns-cache/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:14 · PVG 00:14 · LAX 09:14 · JFK 12:14
    ♥ Do have faith in what you're doing.