Skip to content
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

route wireguard server hosts file #155

Open
Mduque10 opened this issue Feb 22, 2024 · 1 comment
Open

route wireguard server hosts file #155

Mduque10 opened this issue Feb 22, 2024 · 1 comment

Comments

@Mduque10
Copy link

Hello, this is really wonderful, I have been trying to install wireguard in Windows environments for a long time and there are always errors in routing with nat, and this solves it in a simple way.

On the other hand, my request here is the following: on the Windows server where I install this tool, I also have some private DNS in the hosts file, can I have the clients resolve the server's hosts file first and then other DNS like Google ? This would solve the problem of routing a pair of private DNS. Is this viable? thank you so much

@micahmo
Copy link
Owner

micahmo commented Feb 22, 2024

Hi @Mduque10, thanks for the kind words, I'm glad you have found success with this tool!

can I have the clients resolve the server's hosts file first and then other DNS like Google ?

I would be very happy to be wrong, but I do not believe this is possible. Although you can configure DNS on the server when setting up WS4W, DNS is purely a client-side configuration option. While you can use a DNS server that is on the WireGuard network, it is still performing standard DNS lookups from the client. It is not actually asking the server directly for any info.

The only thing I can suggest is using the same hosts file on each of your clients, or setting up a private DNS server on your WireGuard network.

Again, I'm more than happy to be wrong, but I don't believe what you're asking is specifically possible. Feel free to search around though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants