OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
qucklay
V2EX  ›  OpenWrt

内网中 Openwrt 如何提供域名重定向?

  •  
  •   qucklay · Feb 7, 2016 · 1743 views
    This topic created in 3782 days ago, the information mentioned may be changed or developed.

    我想在内网中 baidu.com 的域名重定向到 cn.bing.com
    dnsmasq 可以初步达到这个目的
    cn.bing.com 和 bing.com 是不同的 IP ,我把前者的 IP 写到 dnsmasq.conf 中重定向却还是国际版的 bing.com
    address=/baidu.com/202.89.233.104
    所以我想请问如何在 openwrt 中域名重定向?而不是用 IP ,域名比 IP 准确。

    1 replies    2016-02-07 20:57:03 +08:00
    popu111
        1
    popu111  
       Feb 7, 2016
    搭个 nginx 做 301 到 cn.bing.com
    address=/baidu.com/nginxIP
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3386 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 11:03 · PVG 19:03 · LAX 04:03 · JFK 07:03
    ♥ Do have faith in what you're doing.