Hello,
I couldn't find this in the package documentation. Can we ask the dns
package to return either IPv4 or IPv6 addresses for a given domain?
On 8/29/22 14:25, [email protected] wrote:
Hello,
I couldn't find this in the package documentation. Can we ask the dns
package to return either IPv4 or IPv6 addresses for a given domain?
Looking at the documentation page (https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/dns/tcllib_dns.md) I don't see IPv4 vs IPv6 as option. But I only glanced at it.
On 8/29/22 4:19 PM, Gerald Lester wrote:
On 8/29/22 14:25, [email protected] wrote:
Hello,
I couldn't find this in the package documentation. Can we ask the dns
package to return either IPv4 or IPv6 addresses for a given domain?
Looking at the documentation page
(https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/dns/tcllib_dns.md) I don't see IPv4 vs IPv6 as option.� But I only glanced at it.
Thanks for checking. I looked at the man page in some detail and
tested some of the options but I too did not see anything relevant.
It seems like this feature may depend more on how dns records are
managed at remote servers.
True, the given domain must have a AAAA record in its DNS records, or
else there is no associated ipv6 address.
Then, according to the dns docs at https://core.tcl-lang.org/tcllib/doc/tcllib-1-19/embedded/www/tcllib/files/modules/dns/tcllib_dns.html
you would ask for "-type AAAA" to obtain an ipv6 address (if one exists
at all).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 11:54:21 |
| Calls: | 12,100 |
| Files: | 15,003 |
| Messages: | 6,517,995 |