I noticed that when I looked up an invalid domain name (in my zone that is hosted on CF), then it returned no results, but with a good return code.
dig thisdomaindoesnotexist.pskreporter.info @1.1.1.1
; <<>> DiG 9.10.6 <<>> thisdomaindoesnotexist.pskreporter.info @1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5158
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;thisdomaindoesnotexist.pskreporter.info. IN A
;; AUTHORITY SECTION:
pskreporter.info. 3600 IN SOA anna.ns.cloudflare.com. dns.cloudflare.com. 2033647832 10000 2400 604800 3600
;; Query time: 23 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Mar 30 14:07:31 EDT 2020
;; MSG SIZE rcvd: 146
The same is also true for thisdomaindoesnotexist.cloudflare.com.
Is there a reason for this behavior? Is there any way to tell if a domain actually exists in CF DNS?
Thanks
Philip