Use DNS over HTTP/S

Viewed 22

I am using scapy to create DNS over HTTPS query, below is my code

req = HTTP()/HTTPRequest(
   Method = b'GET',
   Authorization = b'dnsserver.example.net',
   Path = b'/dns-query?dns=AAABAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB',
   Accept = b'application/dns-message',
   Content_Type = b'application/dns-message',
   Content_Length = b'33'
)
a = TCP_client.tcplink(HTTP, "www.dns-server.org", 80)
answer = a.sr1(req)

I want to know what are the values to replace in Authorization Header and Is there any server where I can send the request to? This is to clear my understanding.

0 Answers
Related