跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Windows] Windows 的 DNS 查询乱加域名后缀。如何解决?

发表于

几年前我买了软路由,把我父母家的内网和我自己的内网连了起来。

当时恰好有域名商家正在特价促销,于是我注册了 .guru 域名,用来给我两个内网做区分,同时方便相互访问,至少不用每次都输入 IP 地址。

(以下是示例,并不是我注册的真实域名)

我家用的是 *.myhome.itismydomain.guru,父母家内网用的是 *.thehome.itismydomain.guru

此后访问两边的内网机器全靠域名,很方便。比如访问自己内网的 nas ,我只需要进入 https://nas 或者 https://nas.myhome.itismydomain.guru 就可以了。
访问父母家的 WiFi 路由,只需要进入 wifi.thehome.itismydomain.guru ,方便我远程开 / 关访客 SSID 。

然而没多久就遇到一些小麻烦了。

每次访问正常网站,Windows 总会胡乱拼接域名。比如访问 www.google.comwww.baidu.comwww.icbc.com.cn ,Windows 时不时会抽风,向路由器发出这样的查询:

这样的域名显然不存在,浏览器只好给我跳个 DNS_PROBE_FINISHED_NXDOMAIN 错误码。有时刷新一下就恢复正常。但并不是每次都这么抽风,绝大多数情况下都是正常的。

我父母家那边的 Windows 机器也是一样,偶然会遇到 Windows 乱拼接。

Android 手机不会出现这种情况,Linux 和各个 BSD 也不会出现这种事,它们都知道什么时候应该拼接内部域名,什么时候不该追加内部域名。

已经顺手 Google 了下,发现类似情况早就存在了:
https://answers.microsoft.com/zh-hans/windows/forum/all/windows-server2016-ad/2738559d-11e4-4e96-ab65-ff534e0b7505
整整 7 年,微软也不打算修一修

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.