You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
最近研究 LanCache,我部署在 NAS 上,这玩意要求让局域网内其他设备将需要缓存的域名解析到 LanCache 上,然后 LanCache 访问目标资源,我用 OpenClash 的话他会设置劫持所有 DNS 请求全转发给 Clash,这样的话,如果我在 OpenClash 里设置指定域名解析到 LanCache,那 LanCache 自己访问返回的 DNS 也是 LanCache,这样就造成了 HTTP 508。
我的需求是,如果 DNS 请求来自 LanCache 实例的 IP,则返回真实 DNS 查询结果,否则返回 LanCache 实例的 IP,这如何能做到呢?
我唯一能想到的实现方式是通过 script,但我不知道具体怎么做。有没有大佬愿意赐教,我这个需求能实现吗?谢谢大佬们!
Beta Was this translation helpful? Give feedback.
All reactions