Please stop using nslookup, it is a terrible tool. Use dig instead. #dns
@tykling
Can you elaborate why?
I use nslookup if I want to see if I screwed up my DNS config and dig to see what specific servers do
@dbauer @tykling Why? It is not a real pure DNS client, as it will happily use content of /etc/resolv.conf for search lists and what not. It is also FAR behind in terms of pure DNS features, like EDNS. Recent dig do also have DoT / DoH support. More importantly: the authors of it tell you it is deprecated.
@pmevzek
I specifically want to see if I have screwed up my local DNS config by either using a local DNS server or /etc/hosts
@tykling
@dbauer @tykling Testing local DNS config (or I will say "local resolution config" because names can be resolved in many ways, static /etc/hosts being one) is related but slightly different from testing DNS (purely) by doing DNS queries. To test local resolution config I would advise more towards using `getent ahosts` or `resolvectll`. Or any language piggybacking `gethostbyname` and similar libc endpoints.