yjsslab
V2EX  ›  DNS

pdnsd 把 /etc/hosts 忽略了吗?如何设置使用 /etc/hosts ?

  •  
  •   yjsslab · Apr 18, 2015 · 4110 views
    This topic created in 4074 days ago, the information mentioned may be changed or developed.

    source {
    owner=localhost;
    serve_aliases=on;

    file="/etc/hosts";
    }
    无效果

    2 replies    2015-04-23 15:36:33 +08:00
    yjsslab
        1
    yjsslab  
    OP
       Apr 18, 2015
    奇怪,用 rr 会生效
    rr {
    name = local_name;
    a = 127.0.0.1;
    ...
    }

    那么那个 source {} 究竟怎么用?
    leavic
        2
    leavic  
       Apr 23, 2015
    logread看一下有没有错误,openwrt上/etc目录如果不是755属性,hosts和ethers文件都会读取失败
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2686 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:20 · PVG 10:20 · LAX 19:20 · JFK 22:20
    ♥ Do have faith in what you're doing.