On 22/10/23 04:56, Greg Wooledge wrote:
On Sat, Oct 21, 2023 at 05:35:21PM +0200, Reiner Buehl wrote:is there a DNS lookup command that is installed by default on any Debiangetent hosts NAME getent ahostsv4 NAME That said, you get much finer control from dedicated tools.
That is a useful tool I should remember. But not strictly a DNS lookup tool: richard@zircon:~$ getent hosts zircon 127.0.1.1 zircon.lan.walnut.gen.nz zirconThat's from my /etc/hosts file, and overrides DNS. I didn't see an option in the manpage to ignore /etc/hosts.
I haven't found a way to get just DNS results, without pulling in extra software.
Richard