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

我在官网买的 mac,感觉是买了个翻新机?

  •  
  •   oppddd · 2022-12-02 14:51:00 +08:00 · 1765 次点击
    这是一个创建于 482 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在终端中输入 hostname 返回的信息不是我的信息,怎么回事?

    4 条回复    2022-12-02 15:21:15 +08:00
    xtinput
        1
    xtinput  
       2022-12-02 14:51:53 +08:00
    截图看看
    oppddd
        2
    oppddd  
    OP
       2022-12-02 14:55:44 +08:00
    @xtinput 我把 hostname 修改过来了,没截图。。。
    dearroy
        3
    dearroy  
       2022-12-02 14:58:23 +08:00   ❤️ 1
    https://superuser.com/questions/701259/incorrect-hostname-in-os-x

    It's perfectly normal for this to occur; when you login Terminal remotely bash does a reverse DNS lookup. It will only be the same if the hostname is not specified on the network you're connecting from and there is no reply from the DHCP server, or the reverse lookup against the remote DNS server fails to resolve.

    很常见,不必惊慌。
    oppddd
        4
    oppddd  
    OP
       2022-12-02 15:21:15 +08:00
    @dearroy 感谢解惑;原来是这样子
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   980 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:26 · PVG 04:26 · LAX 13:26 · JFK 16:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.