GNU bug report logs -
#56432
run-dig vs dig -- do we need both?
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Thu, 7 Jul 2022 08:38:01 UTC
Severity: wishlist
Fixed in version 29.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56432 in the body.
You can then email your comments to 56432 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 08:38:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Kangas <stefan <at> marxist.se>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 07 Jul 2022 08:38:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 08:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 56432 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefan <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 09:26:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 56432 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 07 Jul 2022 10:56:55 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:
Lars> Stefan Kangas <stefan <at> 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
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 09:29:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 56432 <at> debbugs.gnu.org (full text, mbox):
Robert Pluim <rpluim <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 09:37:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 56432 <at> debbugs.gnu.org (full text, mbox):
close 56432 29.1
thanks
Robert Pluim <rpluim <at> 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. ;-)
bug marked as fixed in version 29.1, send any further explanations to
56432 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se>
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Thu, 07 Jul 2022 09:37:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 10:38:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 56432 <at> debbugs.gnu.org (full text, mbox):
> Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 56432 <at> debbugs.gnu.org
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Thu, 7 Jul 2022 11:36:06 +0200
>
> close 56432 29.1
> thanks
>
> Robert Pluim <rpluim <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 10:38:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 56432 <at> debbugs.gnu.org (full text, mbox):
> Cc: Stefan Kangas <stefan <at> marxist.se>, 56432 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 10:49:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 56432 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> 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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 10:53:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 56432 <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Thu, 7 Jul 2022 12:47:42 +0200
> Cc: Robert Pluim <rpluim <at> gmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>, 56432 <at> debbugs.gnu.org
>
> Eli Zaretskii <eliz <at> 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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 13:42:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 56432 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> 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).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56432
; Package
emacs
.
(Thu, 07 Jul 2022 14:35:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 56432 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 07 Jul 2022 11:27:52 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:
Lars> Robert Pluim <rpluim <at> 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
--
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 05 Aug 2022 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 321 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.