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


Groups > linux.debian.user > #262600

Re: Default DNS lookup command?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Default DNS lookup command?
Date 2023-10-23 16:00 +0200
Message-ID <Hs3Dj-hUG-9@gated-at.bofh.it> (permalink)
References <HrmeZ-hrvU-13@gated-at.bofh.it> <Hrmyl-hrCJ-1@gated-at.bofh.it> <HrxWN-hyZk-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun 22 Oct 2023 at 11:07:05 (+0700), Max Nikulin wrote:
> On 21/10/2023 22:58, David Wright wrote:
> > On Sat 21 Oct 2023 at 17:35:21 (+0200), Reiner Buehl wrote:
> > > is there a DNS lookup command that is installed by default on any
> > > Debian Bullseye or Bookworm install?
> > 
> > nslookup is in busybox.
> 
> busybox is an optional package, so it may be absent. "getent hosts"
> from Greg's message is better in this sense. If systemd-resolved is
> configured on a particular instance then
> 
>     resolvectl query debian.org
> 
> may be an option.

AFAICT, if you don't have busybox installed, then I think it's likely
that you removed it yourself. The d-i initrd has busybox already installed,
and most people will see something like this in its log:

  # head -n2 /var/log/installer/syslog
  Jul 26 19:17:07 syslogd started: BusyBox v1.35.0
  Jul 26 19:17:07 kernel: klogd started: BusyBox v1.35.0 (Debian 1:1.35.0-4+b3)
  #

If the following file is still available (the one with the highest
generation number), you can see that busybox is typically the third
package to be installed by APT. (If the file has been rotated away,
just search for "busybox" in the file above.)

  # zcat /var/log/apt/history.log.2.gz | head

  Start-Date: 2023-07-26  19:30:49
  Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y --no-remove install locales
  Install: locales:i386 (2.36-9), libc-l10n:i386 (2.36-9, automatic)
  End-Date: 2023-07-26  19:30:56

  Start-Date: 2023-07-26  14:31:14
  Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -q -y --no-remove install busybox
  Install: busybox:i386 (1:1.35.0-4+b3)
  End-Date: 2023-07-26  14:31:16
  # 

I suppose preseed experts might be able to prevent that from
happening, though to what purpose, IDK.

I can only assume that its Priority is set to Optional so that
it's easily removable if not required.

I don't see many reasons that systemd-resolved would get installed
unless you specifically asked for it, so I'd hardly call it
"installed by default".

Cheers,
David.

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