LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-14-2020, 05:10 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
How does this DNS-leak-detection site discover which DNS server is being used?


Have set up a gateway with an intercepting SOCKS 5 proxy that sends everything through Tor, including DNS. The following site says:

"This test attempts to resolve 100 randomly generated domain names asynchronously".

https://browserleaks.com/dns

Given this test for DNS leaks runs in the browser, how does it discover which DNS servers the 100 queries go to? Whatever is set as the DNS server in the network manager is irrelevant when all DNS traffic is intercepted. If you just type:

dig google.com

it does not tell you the DNS server really being used. How can the site's script tell?

Last edited by Ulysses_; 07-14-2020 at 07:43 AM.
 
Old 07-14-2020, 09:13 AM   #2
tinfoil3d
Member
 
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268

Rep: Reputation: 75
They have their own dns server which tcpdump | grep's for your unique hostnames under it, and sees where it comes from. in most cases it'll be coming from google but it also may come from your ISP dnses if you use those.
If you use socks5 with hostnames resolved on the proxy side then it'll return whatever proxy uses as dns.
 
Old 07-14-2020, 11:42 AM   #3
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Could you explain how their DNS server can be involved when it is a browser script that does everything? One would expect the browser only uses the DNS server you specify in the network manager unless intercepted.

Quote:
If you use socks5 with hostnames resolved on the proxy side then it'll return whatever proxy uses as dns.
Tried that too by simply running the browser in the gateway and explicitly making it go through socks5 proxy, and it does return whatever DNS server the Tor exit node uses, but how does the site know, or how does the script know?
 
Old 07-14-2020, 06:40 PM   #4
tinfoil3d
Member
 
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268

Rep: Reputation: 75
Because the website has their own domain, right? And no, not all domains are served by cloudflare in this world yet, you can actually do it yourself and simply log all requests to your DNS server to include source IPs of recursive resolvers that the socks server in question has in it's /etc/resolv.conf.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify which DNS server being used depam Linux - Networking 5 01-15-2015 06:07 AM
memory leak detection rahulruns Programming 5 05-16-2011 11:13 AM
how to know which file is being used by which process sumeet inani Linux - Newbie 8 11-10-2009 11:02 PM
bash discover Audio codec used in a file carl0ski Programming 1 01-19-2007 06:50 PM
discover vs discover1. Mount Points being deleted. davcefai Debian 0 11-11-2006 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration