-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Local Hostnames cannot be accessed in FAKE-IP mode. #4298
Comments
use fake-ip-filter |
That doesn't seem to work either. With fake-ip-filter in blacklist mode and the hostnames added, it returns no IP at all
|
what is the dns server used by resolving this domain |
DNS server is the router itself (10.0.0.1) with hostnames set in the DNS/DHCP settings of OpenWrt |
|
That works for the hostname for the router itself, other hostnames don't work. This was the same when using fake-ip-filter too (now also using the Nameserver-Policy)
|
nameserver-policy: |
Verify Steps
OpenClash Version
v0.46.066
Bug on Environment
Official OpenWrt
OpenWrt Version
23.05
Bug on Platform
Linux-armv7
Describe the Bug
When in Fake-IP mode, local hostnames seem to be ineffective and the DNS returns a fake IP. When using redir-host mode, this issue is not present.
To Reproduce
Create hostname within Openwrt DNS settings for local device, set OpenClash to Fake-IP mode. Hostname cannot be used. nslookup returns a 'fake IP' which does not seem to resolve to the local network device.
In my instance, I have several APs which I access via their hostnames, as well as the router itself with a hostname configured.
OpenClash Log
OpenClash Config
Expected Behavior
Hostnames are usable from local network devices
Additional Context
No response
The text was updated successfully, but these errors were encountered: