Skip to content

Display NXDOMAIN when querying such a domain instead of nothing #158

Description

@Gunni

For example:

$ q <non-existing-hostname>.com
<non-existing-hostname>.com NXDOMAIN returned by com. by authority of a.gtld-servers.net.
$

NXDOMAIN could be red?

Current output `q` vs `dig`

$ q <non-existing-hostname>.com
$

vs

$ dig <non-existing-hostname>.com

; <<>> DiG 9.18.41 <<>> <hostname>.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 43575
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;<non-existing-hostname>.com.   IN      A

;; AUTHORITY SECTION:
com.                    437     IN      SOA     a.gtld-servers.net. nstld.verisign-grs.com. 1772019251 1800 900 604800 900

;; Query time: 3 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Wed Feb 25 11:42:31 UTC 2026
;; MSG SIZE  rcvd: 113

Activity

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

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