icemanpro
V2EX  ›  问与答

apache 反代动态 dns 问题

  •  
  •   icemanpro · Jun 25, 2018 · 1911 views
    This topic created in 3066 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
    nullcoder
    Jun 25, 2018
    1
    ???你问的是动态 IP 吧
    a7a2
    a7a2
    Jun 25, 2018
    2
    写个 shell 每 n 秒 flush 一下 dns 或者可以解决你的问题。https://www.cyberciti.biz/faq/rhel-debian-ubuntu-flush-clear-dns-cache/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2515 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:00 · PVG 19:00 · LAX 03:00 · JFK 06:00
    ♥ Do have faith in what you're doing.