[Toybox] [PATCH] host: fix duplicate strings.

enh enh at google.com
Mon Aug 5 06:14:30 PDT 2024


that doesn't seem to be what the default for the regular host(1) is:
```
~$ host www.google.com
www.google.com has address 142.250.72.100
www.google.com has IPv6 address 2607:f8b0:4006:809::2004
~$ host -t A www.google.com
www.google.com has address 142.250.72.100
~$ host -t AAAA www.google.com
www.google.com has IPv6 address 2607:f8b0:4006:809::2004
```
(it's also not `-t ANY`, because that gets me loads more stuff.)

but don't ask me ... i don't use this. i just ran out of time on a
friday afternoon to start the thing i'd been planning to do, and
thought i'd go through some of the open bugs and see if there were any
easy fixes. this was just a new bug i noticed while fixing an easy
bug.

fwiw, i note that everyone (including musl) seems to have the magic
numbers in their headers too (either as T_CNAME or ns_t_cname, etc),
if you're interested in fewer magic numbers in toybox...

On Sun, Aug 4, 2024 at 8:55 AM Rob Landley <rob at landley.net> wrote:
>
> On 8/2/24 15:50, enh via Toybox wrote:
> > Fixes #396 and theoretically the same bug but for AAAA records, though
> > in practice `toybox host www.google.com` isn't showing me AAAA records
> > like `host www.google.com` does.
>
> Because -t TYPE defaults to "A", and hasn't got a way of indicating multiple
> record types at once.
>
> I could add some sort of CSV syntax...? (There's also -a mode to fetch all...)
>
> Rob


More information about the Toybox mailing list