DNS record for <domain> doesn't exist

But, this works:

nslookup google.com

Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: google.com
Address: 172.217.20.78
Name: google.com
Address: 2a00:1450:400e:80a::200e