V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cathedrel

再懒一点:能把 avahi 默认的 .local 修改成更短的 .as 或者 .n 吗?

  •  
  •   cathedrel · Oct 26, 2021 · 2127 views
    This topic created in 1656 days ago, the information mentioned may be changed or developed.
    /etc/avahi/avahi-daemon.conf 这个文件里有 domain-name=local 这一行,但是修改成 local 之外的任何一个或两个英文字母都会造成失败:iface.c: avahi_server_add_address() failed: Not supported

    搜索的时候发现几年前的一个外国人的帖子里提到把“enable-wide-area=yes”修改成 no 就可以用自定义的域名,我尝试下来还是不行,这样修改之后虽然 avahi 没有提示任何错误,但是局域网里的其他电脑是 ping 不通这台设备的,直接提示“未知的名称或服务”

    还需要修改什么呢?
    jjeyz
        1
    jjeyz  
       Oct 27, 2021 via Android
    都不可以。local 域是伪顶级域,操作系统处理 local 域的逻辑和传统域的逻辑不同。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 13:46 · PVG 21:46 · LAX 06:46 · JFK 09:46
    ♥ Do have faith in what you're doing.