Skip to content

dnsLookup #578

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

Open
freeway7 opened this issue Mar 20, 2025 · 3 comments
Open

dnsLookup #578

freeway7 opened this issue Mar 20, 2025 · 3 comments

Comments

@freeway7
Copy link

freeway7 commented Mar 20, 2025

Hello everyone!

How to set custom DNS server?

@jirimoravcik
Copy link
Member

Hey @freeway7,
what do you exactly mean by a custom DNS server?
Generally speaking, editing of DNS records is done on the host machine/server. If you're running your app in a Docker container, it'd make sense to change /etc/hosts file to your liking.

Thanks

@freeway7
Copy link
Author

freeway7 commented Mar 31, 2025

I mean set DNS server for ProxyChain before upstreamProxy like Google 8.8.8.8 or OpenDNS 208.67.222.222

@jirimoravcik
Copy link
Member

Hello, have you tried https://nodejs.org/api/dns.html#dns_dns_setservers_servers ?

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