<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;" class="zmail_extra" data-zbluepencil-ignore="true"><blockquote id="blockquote_zmail" style="margin: 0px;"><div>Hi all,<br></div><div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt"><div><br></div><div>I'm trying to configure internetsystemsconsortium/bind9:9.21 docker image to act like a recursive DNS-over-HTTP server as a backend to another frontend application that handles all of the HTTPS work from the client, but I couldn't make the server work properly with even making direct requests.<br></div><div>I activated the port 553 to test it as a regular DNS handler and it works, but DNS-over-HTTP feature does not work over 8080 port. I'm sending a GET request in RFC8484 format like this:<br></div><div><br></div><div>curl -H "Content-Type: application/dns-message" 'http://<MY_SERVER_IP>:8080/dns-query?dns=qqoBAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE'<br>this returns "curl: (1) Received HTTP/0.9 when not allowed"</div><div><br></div><div>When I try this one:<br></div><div>curl -H "Content-Type: application/dns-message" 'http://<MY_SERVER_IP>:8080/dns-query?dns=qqoBAAABAAAAAAAAB2V4YW1wbGUDY29tAAABAAE' --http0.9 --output -<br></div><div>this returns d%<br></div><div><br></div><div>I have this named.conf file:<br></div><div><br></div><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">acl allowed_clients {</span><br><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  <MY_IP></span>/32;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">};</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">http doh {</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>endpoints { "/dns-query"; };</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">};</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">options {</span><br><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>directory "/var/cache/bind";</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>interface-interval 0;</span></span><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>listen-on port 553 { any; };</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>listen-on port 8080 tls none http doh { any; };</span><br></span><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>allow-query { allowed_clients; };</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>allow-transfer { none; };</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>allow-notify { none; };</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>allow-update { none; };</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>allow-recursion { allowed_clients; };</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>recursion yes;</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>auth-nxdomain no;</span></span><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span><br></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>dnssec-validation no;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">};</span><br></span></span></span></p><p class="x_709414994p2" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal; min-height: 15px;"><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">logging{</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>channel simple_log {</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>stderr;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>severity info;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>print-time yes;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>print-severity yes;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>print-category yes;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>};</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>category default{</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">    </span>simple_log;</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style=""><span class="x_709414994Apple-converted-space">  </span>};</span><br></span></span></span></p><p class="x_709414994p1" style="margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal"><span class="colour" style="color:rgb(0, 0, 0)"><span class="font" style="font-family:Menlo"><span class="size" style="font-size: 13px; margin: 0px; font-style: normal; font-variant: normal; font-size-adjust: none; font-weight: normal; font-stretch: normal; line-height: normal;"><span class="x_709414994s1" style="">};</span><br></span></span></span></p><div class="x_709414994zmail_signature_below"><div id=""><div><br></div><div><br></div><div>Looking forward to your reply and thank you very much for your help in advance!<br></div><div>Metin<br></div></div></div></div></div></blockquote></div><br></body></html>