unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56432: run-dig vs dig -- do we need both?
@ 2022-07-07  8:37 Stefan Kangas
  2022-07-07  8:56 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2022-07-07  8:37 UTC (permalink / raw)
  To: 56432

Severity: wishlist

Do we really need both the `dig' and the `run-dig' commands?

Should one of them be obsoleted?  If we want to be able to specify both
query-type and server, we could consider using double and triple
prefixes for that.  Or even write a transient.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  8:37 bug#56432: run-dig vs dig -- do we need both? Stefan Kangas
@ 2022-07-07  8:56 ` Lars Ingebrigtsen
  2022-07-07  9:24   ` Robert Pluim
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-07  8:56 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 56432

Stefan Kangas <stefan@marxist.se> writes:

> Do we really need both the `dig' and the `run-dig' commands?
>
> Should one of them be obsoleted?  If we want to be able to specify both
> query-type and server, we could consider using double and triple
> prefixes for that.  Or even write a transient.

Looks like `run-dig' should be obsoleted (since it's just a wrapper
around the "dig" program) and has worse output.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  8:56 ` Lars Ingebrigtsen
@ 2022-07-07  9:24   ` Robert Pluim
  2022-07-07  9:27     ` Lars Ingebrigtsen
  2022-07-07  9:36     ` Stefan Kangas
  0 siblings, 2 replies; 11+ messages in thread
From: Robert Pluim @ 2022-07-07  9:24 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Stefan Kangas, 56432

>>>>> On Thu, 07 Jul 2022 10:56:55 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Stefan Kangas <stefan@marxist.se> writes:
    >> Do we really need both the `dig' and the `run-dig' commands?
    >> 
    >> Should one of them be obsoleted?  If we want to be able to specify both
    >> query-type and server, we could consider using double and triple
    >> prefixes for that.  Or even write a transient.

    Lars> Looks like `run-dig' should be obsoleted (since it's just a wrapper
    Lars> around the "dig" program) and has worse output.

For extra credit, add a ʼserverʼ arg to a wrapper around `dns-query',
and obsolete `dig' as well.

Robert
-- 





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  9:24   ` Robert Pluim
@ 2022-07-07  9:27     ` Lars Ingebrigtsen
  2022-07-07 10:37       ` Eli Zaretskii
  2022-07-07 14:33       ` Robert Pluim
  2022-07-07  9:36     ` Stefan Kangas
  1 sibling, 2 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-07-07  9:27 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Stefan Kangas, 56432

Robert Pluim <rpluim@gmail.com> writes:

> For extra credit, add a ʼserverʼ arg to a wrapper around `dns-query',
> and obsolete `dig' as well.

dns.el requires UDP, I think, so it wouldn't work on Windows?  (Nor all
DNS servers support TCP.)

On the other hand, I don't know whether the dig executable is available
on Windows.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  9:24   ` Robert Pluim
  2022-07-07  9:27     ` Lars Ingebrigtsen
@ 2022-07-07  9:36     ` Stefan Kangas
  2022-07-07 10:37       ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2022-07-07  9:36 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Lars Ingebrigtsen, 56432

close 56432 29.1
thanks

Robert Pluim <rpluim@gmail.com> writes:

>     Lars> Looks like `run-dig' should be obsoleted (since it's just a wrapper
>     Lars> around the "dig" program) and has worse output.

Thanks, now done (commit 707124d2b9).

> For extra credit, add a ʼserverʼ arg to a wrapper around `dns-query',
> and obsolete `dig' as well.

This part is left as an exercise for the reader.  ;-)





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  9:36     ` Stefan Kangas
@ 2022-07-07 10:37       ` Eli Zaretskii
  2022-07-07 10:47         ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-07-07 10:37 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: rpluim, larsi, 56432

> Cc: Lars Ingebrigtsen <larsi@gnus.org>, 56432@debbugs.gnu.org
> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 7 Jul 2022 11:36:06 +0200
> 
> close 56432 29.1
> thanks
> 
> Robert Pluim <rpluim@gmail.com> writes:
> 
> >     Lars> Looks like `run-dig' should be obsoleted (since it's just a wrapper
> >     Lars> around the "dig" program) and has worse output.
> 
> Thanks, now done (commit 707124d2b9).

Such a hurry...

run-dig seems to be able to guess the host using
net-utils-machine-at-point, something 'dig' doesn't.  So if we want to
tell people top use the latter, IMO we should teach 'dig' that trick.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  9:27     ` Lars Ingebrigtsen
@ 2022-07-07 10:37       ` Eli Zaretskii
  2022-07-07 14:33       ` Robert Pluim
  1 sibling, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2022-07-07 10:37 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: rpluim, stefan, 56432

> Cc: Stefan Kangas <stefan@marxist.se>, 56432@debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 07 Jul 2022 11:27:52 +0200
> 
> On the other hand, I don't know whether the dig executable is available
> on Windows.

It is, albeit not by default:

  https://phoenixnap.com/kb/dig-windows





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07 10:37       ` Eli Zaretskii
@ 2022-07-07 10:47         ` Stefan Kangas
  2022-07-07 10:52           ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2022-07-07 10:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, Lars Ingebrigtsen, 56432

Eli Zaretskii <eliz@gnu.org> writes:

> run-dig seems to be able to guess the host using
> net-utils-machine-at-point, something 'dig' doesn't.  So if we want to
> tell people top use the latter, IMO we should teach 'dig' that trick.

net-utils-machine-at-point does not seem very useful to me (it seems
to pick up any word whether or not it looks like a domain name?), but
perhaps we could use thing-at-point instead?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07 10:47         ` Stefan Kangas
@ 2022-07-07 10:52           ` Eli Zaretskii
  2022-07-07 13:41             ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-07-07 10:52 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: rpluim, larsi, 56432

> From: Stefan Kangas <stefan@marxist.se>
> Date: Thu, 7 Jul 2022 12:47:42 +0200
> Cc: Robert Pluim <rpluim@gmail.com>, Lars Ingebrigtsen <larsi@gnus.org>, 56432@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > run-dig seems to be able to guess the host using
> > net-utils-machine-at-point, something 'dig' doesn't.  So if we want to
> > tell people top use the latter, IMO we should teach 'dig' that trick.
> 
> net-utils-machine-at-point does not seem very useful to me (it seems
> to pick up any word whether or not it looks like a domain name?)

Is it really any worse than not showing any possibly useful default at
all?

> but perhaps we could use thing-at-point instead?

If thing-at-point can guess machines better, sure, why not?  But if it
isn't better, why not use net-utils-machine-at-point?





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07 10:52           ` Eli Zaretskii
@ 2022-07-07 13:41             ` Stefan Kangas
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Kangas @ 2022-07-07 13:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, Lars Ingebrigtsen, 56432

Eli Zaretskii <eliz@gnu.org> writes:

> > net-utils-machine-at-point does not seem very useful to me (it seems
> > to pick up any word whether or not it looks like a domain name?)
>
> Is it really any worse than not showing any possibly useful default at
> all?

I found it much worse, but this was mostly due to using the obsolete
INITIAL-CONTENTS argument (which meant you had to delete that less
than useful input to type something useful).  So I've now changed
`dig' to use a standard default instead (commit 7b84f9a5d8).

> > but perhaps we could use thing-at-point instead?
>
> If thing-at-point can guess machines better, sure, why not?  But if it
> isn't better, why not use net-utils-machine-at-point?

It seems like the ffap versions are strictly better, so I've replaced
the net-utils-* versions with ffap-* (commit a651c309fd).





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#56432: run-dig vs dig -- do we need both?
  2022-07-07  9:27     ` Lars Ingebrigtsen
  2022-07-07 10:37       ` Eli Zaretskii
@ 2022-07-07 14:33       ` Robert Pluim
  1 sibling, 0 replies; 11+ messages in thread
From: Robert Pluim @ 2022-07-07 14:33 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Stefan Kangas, 56432

>>>>> On Thu, 07 Jul 2022 11:27:52 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Robert Pluim <rpluim@gmail.com> writes:
    >> For extra credit, add a ʼserverʼ arg to a wrapper around `dns-query',
    >> and obsolete `dig' as well.

    Lars> dns.el requires UDP, I think, so it wouldn't work on Windows?  (Nor all
    Lars> DNS servers support TCP.)

It falls back to TCP on windows, so yes, it would not work with the
small minority of servers that donʼt support TCP.

All we need is Someone™ to fix UDP support on Windows.

Robert
-- 





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-07-07 14:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07  8:37 bug#56432: run-dig vs dig -- do we need both? Stefan Kangas
2022-07-07  8:56 ` Lars Ingebrigtsen
2022-07-07  9:24   ` Robert Pluim
2022-07-07  9:27     ` Lars Ingebrigtsen
2022-07-07 10:37       ` Eli Zaretskii
2022-07-07 14:33       ` Robert Pluim
2022-07-07  9:36     ` Stefan Kangas
2022-07-07 10:37       ` Eli Zaretskii
2022-07-07 10:47         ` Stefan Kangas
2022-07-07 10:52           ` Eli Zaretskii
2022-07-07 13:41             ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).