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

How to open edns? #22

Closed
FenghenHome opened this issue Feb 15, 2019 · 11 comments
Closed

How to open edns? #22

FenghenHome opened this issue Feb 15, 2019 · 11 comments

Comments

@FenghenHome
Copy link

How to open edns? I am using dig +subnet without answering.

@FenghenHome
Copy link
Author

root@ubuntu:~# dig @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 244
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1536
;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 300 IN A 216.58.200.4

;; Query time: 96 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 15 20:35:02 CST 2019
;; MSG SIZE rcvd: 73

@semihalev
Copy link
Owner

EDNS subnet support currently disabled because of privacy concerns, if you want to use EDNS subnet, you can remove comment on this line https://github.com/semihalev/sdns/blob/master/dnsutil/dnsutil.go#L122 and build again.

@FenghenHome
Copy link
Author

Hello, guys, thank you for your reply, if I want to use only rootservers to parse dns, what should I do?

@FenghenHome
Copy link
Author

root@ubuntu:~# dig @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50713
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1536
;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 300 IN A 216.58.200.4

;; Query time: 20 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Feb 16 10:57:56 CST 2019
;; MSG SIZE rcvd: 73

@FenghenHome
Copy link
Author

Has been modified, still can not use edns, please help me!

@semihalev
Copy link
Owner

Your dig version very old, you can update but try like this.

dig @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1 +edns

@FenghenHome
Copy link
Author

root@ubuntu:~# dig @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1 +edns

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @127.0.0.1 -p 53 www.google.com +subnet=1.1.1.1 +edns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62778
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1536
;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 300 IN A 216.58.200.4

;; Query time: 15 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Feb 16 13:06:04 CST 2019
;; MSG SIZE rcvd: 73

@FenghenHome
Copy link
Author

Still can not use edns, please help me!

@FenghenHome
Copy link
Author

root@ubuntu:~# dig @8.8.8.8 www.google.com +subnet=1.1.1.1 +edns

; <<>> DiG 9.10.3-P4-Ubuntu <<>> @8.8.8.8 www.google.com +subnet=1.1.1.1 +edns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35828
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; CLIENT-SUBNET: 1.1.1.1/32/24
;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 299 IN A 172.217.194.103
www.google.com. 299 IN A 172.217.194.106
www.google.com. 299 IN A 172.217.194.99
www.google.com. 299 IN A 172.217.194.104
www.google.com. 299 IN A 172.217.194.147
www.google.com. 299 IN A 172.217.194.105

;; Query time: 15 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Feb 16 13:07:10 CST 2019
;; MSG SIZE rcvd: 151

@FenghenHome
Copy link
Author

FenghenHome commented Feb 16, 2019

My dig is ok.

@FenghenHome
Copy link
Author

please help me!

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