Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #262618

Re: Default DNS lookup command?

From Max Nikulin <manikulin@gmail.com>
Newsgroups linux.debian.user
Subject Re: Default DNS lookup command?
Date 2023-10-23 19:10 +0200
Message-ID <Hs6Bc-kfZ-9@gated-at.bofh.it> (permalink)
References <HrmeZ-hrvU-13@gated-at.bofh.it> <Hrmym-hrCJ-7@gated-at.bofh.it> <HrF7X-2vN-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 22/10/2023 18:39, Richard Hector wrote:
> But not strictly a DNS lookup tool:
> 
> richard@zircon:~$ getent hosts zircon
> 127.0.1.1       zircon.lan.walnut.gen.nz zircon
> 
> That's from my /etc/hosts file, and overrides DNS. I didn't see an 
> option in the manpage to ignore /etc/hosts.

getent -s dns hosts zircon

However /etc/resolv.conf may point to local systemd-resolved server or 
to dnsmasq started by NetworkManager and they read /etc/hosts by default.

> I haven't found a way to get just DNS results, without pulling in extra 
> software.

Usual task for application is to resolve hostname and enough methods 
besides DNS may be used: multicast DNS, LLMNR, etc. If you need a debug 
tool then you should install it. On the other hand it is desperate when 
a feature is implemented, but not exposed to users.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Default DNS lookup command? Reiner Buehl <reiner.buehl@gmail.com> - 2023-10-21 17:40 +0200
  Re: Default DNS lookup command? David Wright <deblis@lionunicorn.co.uk> - 2023-10-21 18:00 +0200
    Re: Default DNS lookup command? reiner.buehl@gmail.com - 2023-10-21 22:10 +0200
    Re: Default DNS lookup command? Max Nikulin <manikulin@gmail.com> - 2023-10-22 06:10 +0200
      Re: Default DNS lookup command? David Wright <deblis@lionunicorn.co.uk> - 2023-10-23 16:00 +0200
        Re: Default DNS lookup command? Max Nikulin <manikulin@gmail.com> - 2023-10-23 19:00 +0200
  Re: Default DNS lookup command? Greg Wooledge <greg@wooledge.org> - 2023-10-21 18:00 +0200
    Re: Default DNS lookup command? Richard Hector <richard@walnut.gen.nz> - 2023-10-22 13:50 +0200
      Re: Default DNS lookup command? Max Nikulin <manikulin@gmail.com> - 2023-10-23 19:10 +0200
        Re: Default DNS lookup command? Richard Hector <richard@walnut.gen.nz> - 2023-10-30 08:10 +0100
          Re: Default DNS lookup command? Max Nikulin <manikulin@gmail.com> - 2023-10-31 04:30 +0100
            Re: Default DNS lookup command? Richard Hector <richard@walnut.gen.nz> - 2023-11-12 20:30 +0100
  Re: Default DNS lookup command? Juri Grabowski <debian@jugra.de> - 2023-10-21 18:10 +0200

csiph-web