Skip to content

Instantly share code, notes, and snippets.

@bortzmeyer
Created October 22, 2019 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bortzmeyer/6db40d8ae5a7fa30c50afd1b540a5692 to your computer and use it in GitHub Desktop.
Save bortzmeyer/6db40d8ae5a7fa30c50afd1b540a5692 to your computer and use it in GitHub Desktop.
ECS in the responses of a DoH resolver
% homer https://dns.hostux.net/dns-query csa.fr A       
id 0
opcode QUERY
rcode NOERROR
flags QR RD RA
edns 0
payload 4096
option ECS 2001:67c:1348::/56 scope/0
;QUESTION
csa.fr. IN A
;ANSWER
csa.fr. 3600 IN A 217.115.162.34
;AUTHORITY
;ADDITIONAL

Total elapsed time: 0.32 seconds (322.98 ms/request )


% homer https://cloudflare-dns.com/dns-query csa.fr A
id 0
opcode QUERY
rcode NOERROR
flags QR RD RA
edns 0
payload 1452
option Generic 12
;QUESTION
csa.fr. IN A
;ANSWER
csa.fr. 199 IN A 217.115.162.34
;AUTHORITY
;ADDITIONAL

Total elapsed time: 0.22 seconds (218.57 ms/request )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment