Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

"DNS" for IPv6

Dec
39
0
I have IPv6-connectivety just fine. All these commands works:

c:\> ping.exe -6 ipv6.google.com
c:\> tracert.exe -6 ipv6.google.com
c:\> adig.exe @1.1.1.1 -t aaaa ipv6.google.com
c:\> dig.exe @1.1.1.1 -t aaaa ipv6.google.com -- gives 2a00:1450:400f:803::200e


(and BTW ipv6.google.com has no IPv4 address).

But the built-in DNS command; c:\>dns 1.1.1.1 ipv6.google.com hangs TCC real good.
To the extent I have to use ProcessExplorer to kill it.

Do the bundled IPWorks20.dll really do not support IPv6? Or is it another known issue WRT this?
 
This is the output of your command on my system;
Code:
E:\Utils>dns 1.1.1.1 ipv6.google.com 

Type    Field       Value
-----------------------------------
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com
CNAME   CNAME       ipv6.l.google.com

My system did not hang.

Joe
 
No crash here, in either v34 or v33. But that output looks awfully weird to me. There should be an SOA record, and a AAAA record. And why is that one CNAME repeated 22 times?
 
DNS [/Nh] server hostname

What's /Nh supposed to do. Note that, after pasting the line above (copied from the help), I'm stuck in italic mode!
 
DNS [/Nh] server hostname

What's /Nh supposed to do. Note that, after pasting the line above (copied from the help), I'm stuck in italic mode!

No Header: suppresses the column headers at the start of output.
 
This online editor is crap IMHO.
Editor, which EDITOR? The internal DNS command is not an editor.

PS: No crash here too (tested with current release).

PPS: But 22 times CNAME, that seems really weird.
 
Editor, which EDITOR? The internal DNS command is not an editor.
I think he means the editor I'm using right now to compose this post. I think it's excellent but copying from the help and pasting in this editor is (has always been) a nightmare.
 
I think he means the editor I'm using right now to compose this post. I think it's excellent but copying from the help and pasting in this editor is (has always been) a nightmare.
Whatever text I copy into the clipboard for use elsewhere,
I paste as plain text.

Ref: Home
Shift-Enter | Paste CF_TEXT (plain text with no formatting) only

Joe
 
I wouldn't have thought of anything like that. I discovered Windows's Ctrl-Shift-V which does that. Now all I have to do is remember it!

Shift-Enter gives nothing but a newline for me. Is that peculiar to Ditto?
 
Try and also remember the Win-V key,
which is part of Microsoft Windows,
to bring up a list of your recent clips.

Yes, Shift-Enter is the default key to paste from Ditto,
to "paste as text",
from the Ditto Clip list.

I have configured Ctrl-/ as the "paste as text" key for Ditto
for whatever is currently on the Windows Clipboard.

Joe
 
Last edited:
I've been using Ditto since Windows 7,
before Microsoft made clipboard history available.

I still use Ditto with Windows 10,
for editing the clipboard when necessary.

Ref: Editing the Windows Clipboard from TCC

Joe
 
No crash here, in either v34 or v33. But that output looks awfully weird to me. There should be an SOA record, and a AAAA record. And why is that one CNAME repeated 22 times?

Query types 1 to 21:

QT_ADDRESS(1),
QT_NS(2),
QT_MD(3),
QT_MF(4),
QT_CNAME(5),
QT_SOA(6),
QT_MAIL_BOX(7),
QT_MAIL_GROUP(8),
QT_MR(9),
QT_NULL(10),
QT_WKS(11),
QT_POINTER(12),
QT_HOST_INFO(13),
QT_MAIL_INFO(14),
QT_MX(15),
QT_TEXT(16),
QT_RP(17),
QT_AFSDB(18),
QT_X25(19),
QT_ISDN(20),
QT_RT(21),
 
I don't get a hang, but sometimes I see long pauses between different record types:

Code:
c:\>timer dns * unm.edu
Timer 1 on: 10:38:06

Type    Field       Value
-----------------------------------
A       ADDRESS     129.24.172.124
NS      DNAME       ns2.unm.edu
NS      DNAME       externaldns0.nmt.edu
NS      DNAME       ns1.unm.edu
NS      DNAME       pdnsbox.id.nmt.edu
SOA     MNAME       ns1.unm.edu
        RNAME       host-request.unm.edu
        SERIAL      2014055059
        REFRESH     10800
        RETRY       3600
        EXPIRE      2419200
        MINIMUM     900
MX      PREFERENCE  5
        EXCHANGE    unm-edu.mail.protection.outlook.com
TXT     TXT         MS=ms33713651
TXT     TXT         adobe-idp-site-verification=ae2c06b3-e720-41e1-a11b-efe29c6da3e6
TXT     TXT         adobe-sign-verification=695d118630e71cd45502c7578c1b66da
TXT     TXT         google-site-verification=suDeBu3cQ5JEfYn92UdyZqkDPVCRI3QFK4dbV1tzUNk
TXT     TXT         google-site-verification=-MjQXj6AZH8Vta03ajXcDJ-xE8sGuN7Ig2RA4no8te8
TXT     TXT         v=spf1 include:spf.protection.outlook.com include:spf-ext.unm.edu exists:%{i}._spf.unm.edu exists:%{ir}.in-addr.arpa._spf.unm.edu ~all
Timer 1 off: 10:39:17  Elapsed: 0:01:10.969

If the pause is long enough, it could certainly look like a hang.

I suspect that, depending on the DNS server and the version of Windows, DnsQuery() can take a very long time to not return any results. My suggestion: Instead of looping through a bunch of record types, only call DnsQuery() on the ones you care about — the one that are likely to return records. And add DNS_TYPE_AAAA to that list; preferably right after DNS_TYPE_A, rather than in numeric order at the end.
 
Those could be timeouts. Here, vefatica.net finishes in less than 2 seconds, after the SOA records. Jpsoft.com and syr.edu also finish in even better time.
 
Those delays also look look multiples of 5 seconds, the first one 20 seconds, the second 60 seconds, and the final one 55 seconds. This is very reproducible. I did this with a BTM running in a thread and watching for a change in _ROW. Below, the green text is total elapsed time when _ROW changes (polling every 250 ms). My command was thread timecon.btm & dns * unm.edu.

1740773552930.webp


That gave me an idea. A KEYHANDLER plugin gets a 0 when a new prompt is issued (right?). If so, a keyhandler plugin might set a variable (environment or internal) when the prompt is issued so a thread, testing that variable, might terminate when TC returns to a prompt.
 
A couple times I saw this as the last line output by dns * unm.edu. It looks fishy! You have it too. It's not always there.

Code:
TXT     TXT         v=spf1 include:spf.protection.outlook.com include:spf-ext.unm.edu exists:%{i}._spf.unm.edu exists:%{ir}.in-addr.arpa._spf.unm.edu ~all
 
That record is there even when querying from on-campus, and UNM does use outlook.com for email. I believe it's legit.

It is odd that we only get a subset of TXT records; maybe that's by design? Using my DNS for TCC/LE, I get twenty TXT records.
 
I guess that stuff belongs there. I get all of this from DIG.EXE. I think they deal with domain authentication. UNM must be pretty darn authentic!

Code:
v:\> d:\dig\dig.exe unm.edu txt | grep -E -v ";|^$"
unm.edu.        3600    IN  TXT "sending_domain847783=d935300f6547adde7e4295af38a181e15529b8eb9a58a7d757ea51cbba0383fe"
unm.edu.        3600    IN  TXT "smartsheet-site-validation=UCKJGPomcSkOEEuysWTz2x2umXtv9j-Z"
unm.edu.        3600    IN  TXT "bw=/LNkne90tgaC/vlJhmsVBACgGoI5Rv1PkTpU4e3nLw/p"
unm.edu.        3600    IN  TXT "ecostruxure-it-verification=d51743f8-79b4-4d01-9810-c0d99693a777"
unm.edu.        3600    IN  TXT "google-site-verification=7iwR8dxmarTPWxgg65DO5qo-lNqkARUiy1RECbMoLGc"
unm.edu.        3600    IN  TXT "google-gws-recovery-domain-verification=53756480"
unm.edu.        3600    IN  TXT "MS=ms33713651"
unm.edu.        3600    IN  TXT "adobe-idp-site-verification=ae2c06b3-e720-41e1-a11b-efe29c6da3e6"
unm.edu.        3600    IN  TXT "adobe-sign-verification=695d118630e71cd45502c7578c1b66da"
unm.edu.        3600    IN  TXT "google-site-verification=suDeBu3cQ5JEfYn92UdyZqkDPVCRI3QFK4dbV1tzUNk"
unm.edu.        3600    IN  TXT "google-site-verification=-MjQXj6AZH8Vta03ajXcDJ-xE8sGuN7Ig2RA4no8te8"
unm.edu.        3600    IN  TXT "v=spf1 include:spf.protection.outlook.com include:spf-ext.unm.edu exists:%{i}._spf.unm.edu exists:%{ir}.in-addr.arpa._spf.unm.edu ~all"
unm.edu.        3600    IN  TXT "apple-domain-verification=i21Rmnp3kMxjyOsL"
unm.edu.        3600    IN  TXT "qjqk6tdrkmopfp5m2j33pkmo2c"
unm.edu.        3600    IN  TXT "d365mktkey=7ffx77jzky72hf0xhqzpdnzal"
unm.edu.        3600    IN  TXT "d365mktkey=14mt5liikiawj58jkfnm6eoo4"
unm.edu.        3600    IN  TXT "E7kcO4Z9/K4NFtBXeTmVR84db1ExlBhc0up4udLENHBgVlLbyd5io04z9+KWfdS5OnPEtHRB5zp01VMR0Fdruw=="
unm.edu.        3600    IN  TXT "infoblox-domain-mastery=54db02c30ad89abb1341a4a820d90a4ce97881fbee931c3f68915de7bd6bb92bbe"
unm.edu.        3600    IN  TXT "atlassian-domain-verification=yIhOQk6VPZdTEKp02VQJ3SqSDJqnRZBJPPTpm38piDS8lcUtw3GEwwR0MI47i3Rl"
unm.edu.        3600    IN  TXT "vmware-cloud-verification-4c0366e9-cee9-40da-95e2-5e3c72bcae1f"
 
I didn't need a thread. You can do this with a BTM (do l in @con:).

1740842090469.webp
 
Come to think, TCC has had an internal TS command since v26. I tend to forget it's there, but it is.

Yeah! After Google came up with Linux's ts, I had the deja vu feeling.

Here's the BTM again with more formatting, a total time, and ellipsis instead of wrapped lines. The delays still look like 5 second timeouts. And the TXT results are different almost every time.

1740845400489.webp
 
And the TXT results are different almost every time.

I think that part is to be expected. DNS records of the same type are returned in random order. ("Random order" — an oxymoron?) So if the DNS command for some reason only displays the first six, then which six you get will be unpredictable.
 
Charles, what does the '*' in the DNS command do? It's not mentioned in the help.
 
Charles, what does the '*' in the DNS command do? It's not mentioned in the help.

So it isn't. That just uses the system's default DNS server(s). I remember from the beta; don't know why it didn't make it into the help.
 
Back
Top