Open z0ccc opened 2 years ago
@z0ccc
First, your server needs a public IP. Then configure your DNS, add NS type records, and add A type records.
Host | Type | Value |
---|---|---|
dns-leak | NS | ns1.dns-leak.writebug.win |
ns1.dns-leak | A | 35.189.162.161(public IP) |
Finally, modify the program source code and modify SERVER_PUBLIC_IP to your public network IP.
Hi, Thanks for the response! Ive setup my domain records like this:
My server is running Ubuntu 22.04 x64.
I cloned this repo on my server and set SERVER_PUBLIC_IP in dns_server.py to my servers public ip (45.77.221.213).
I then ran run_daemon.sh
and it succesfully created the output file with no errors.
But when I try to run curl e027c8af-2a4d-44f1-8891-ff6296451596.dns-leak.locatejs.com:8053
It gives me the error curl: (6) Could not resolve host: e027c8af-2a4d-44f1-8891-ff6296451596.dns-leak.locatejs.com
Do you know what could be going wrong? Thanks
@z0ccc
You can use the dig command to test.
example:
dig github.com
# A record
dig ns1.dns-leak.locatejs.com @45.77.221.213
In your case, the dig ns1.dns-leak.locatejs.com
request is timing out.
It is not necessary to have ns1 as a subdomain of dns-leak.locatejs.com. You can try the configuration below.
Host | Type | Value |
---|---|---|
dns-leak | NS | leakns1.locatejs.com |
leakns1 | A | 45.77.221.213 |
In addition, instead of using run_daemon.sh
, use python3 dns_server.py
to directly output error messages
@zhangjiaxing
I have changed the configuration to:
When I run dig dns-leak.locatejs.com @45.77.221.213
I get the output:
; <<>> DiG 9.18.1-1ubuntu1.1-Ubuntu <<>> dns-leak-locatejs.com @45.77.221.213
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2828
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dns-leak-locatejs.com. IN A
;; ANSWER SECTION:
dns-leak-locatejs.com. 600 IN A 45.77.221.213
;; Query time: 99 msec
;; SERVER: 45.77.221.213#53(45.77.221.213) (UDP)
;; WHEN: Tue Jun 07 03:31:59 UTC 2022
;; MSG SIZE rcvd: 55
Running python3 dns_server.py
returns no errors.
But when I run curl db917ea0-e612-11ec-8fea-0242ac120002.dns-leak.locatejs.com:8053
I get the error curl: (6) Could not resolve host: db917ea0-e612-11ec-8fea-0242ac120002.dns-leak.locatejs.com
Do you have any advice on how I can fix this? I appreciate your responses. Thanks
@z0ccc
Please run the commands, dig @8.8.8.8 dns-leak.locatejs.com ns
and dig @8.8.8.8 leakns1.locatejs.com
.
What is the output of the above command?
Hi, Did you have to do any server configuration for this project? Also what domain records do you use? Thanks!