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
{{ message }}
Repository navigation
Mihomo, please resolve destination domains locally before forwarding to proxy outbounds
#3417
Here is an issue that i don't know how to solve in mi-homo:
I have a local DNS server that resolves custom domains, for example:
myserver.wan -> 5.230.100.14
My Mihomo DNS configuration uses nameserver-policy to resolve .wan domains through my local DNS server:
dns:
nameserver-policy:
'+.wan':
- 192.168.1.1
So far so good.
However, when I want to access myserver.wan through a proxy outbound like Hysteria2, Mihomo forwards the original hostname(myserver.wan) to the remote server!
The poor remote server then attempts to resolve myserver.wan using its own DNS resolver, which obviously cannot resolve my private DNS records.
for example, here is what is my Hysteria2 server reports when receives such a request:
WARN TCP error {
"reqAddr": "myserver.wan:8443",
"error": "resolve error: lookup myserver.wan on 8.8.8.8:53: no such host"
}
I just don't know how to configure mihomo such that it forward this kind of requests by resolved IP address, and not by their domain name.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
Here is an issue that i don't know how to solve in mi-homo:
I have a local DNS server that resolves custom domains, for example:
My Mihomo DNS configuration uses
nameserver-policyto resolve.wandomains through my local DNS server:So far so good.
However, when I want to access
myserver.wanthrough a proxy outbound like Hysteria2, Mihomo forwards the original hostname(myserver.wan) to the remote server!The poor remote server then attempts to resolve
myserver.wanusing its own DNS resolver, which obviously cannot resolve my private DNS records.for example, here is what is my Hysteria2 server reports when receives such a request:
I just don't know how to configure mihomo such that it forward this kind of requests by resolved IP address, and not by their domain name.
All reactions