Skip to content

Can't get this to work with DiG 9.19.9 #1

@abcbarryn

Description

@abcbarryn

I created a folder called /dns-query and copied the php file to index.php in that folder. I am running the PHP 8.2.21 apache module.
I tried to query DoH using the dig command and got this result...

dig @127.0.0.1 +https example.com

;; Connection to 127.0.0.1#443(127.0.0.1) for example.com failed: end of file.
;; Connection to 127.0.0.1#443(127.0.0.1) for example.com failed: end of file.
;; Connection to 127.0.0.1#443(127.0.0.1) for example.com failed: end of file.

When I switch back to BIND 9.19.9 (Development Release) server which support DoH and query that, it works fine.

dig @127.0.0.1 +https example.com

; <<>> DiG 9.19.9 <<>> @127.0.0.1 +https example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47163
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: ff62e0868d4257530100000067dbec9056351e9e60a0ee27 (good)
;; QUESTION SECTION:
;example.com. IN A

;; ANSWER SECTION:
example.com. 52 IN A 23.215.0.138
example.com. 52 IN A 23.192.228.80
example.com. 52 IN A 96.7.128.198
example.com. 52 IN A 23.192.228.84
example.com. 52 IN A 23.215.0.136
example.com. 52 IN A 96.7.128.175

;; Query time: 7 msec
;; SERVER: 127.0.0.1#443(127.0.0.1) (HTTPS)
;; WHEN: Thu Mar 20 06:23:12 EDT 2025
;; MSG SIZE rcvd: 164

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions