V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yjsslab
V2EX  ›  DNS

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

  •  
  •   yjsslab · 2015-04-18 11:40:39 +08:00 · 3435 次点击
    这是一个创建于 3288 天前的主题,其中的信息可能已经有所发展或是发生改变。

    source {
    owner=localhost;
    serve_aliases=on;

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

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

    那么那个 source {} 究竟怎么用?
    leavic
        2
    leavic  
       2015-04-23 15:36:33 +08:00
    logread看一下有没有错误,openwrt上/etc目录如果不是755属性,hosts和ethers文件都会读取失败
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   942 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.