Closed edyesed closed 7 years ago
FYI: the behavior of net.LookupHost is to follow CNAMEs, so you end up with output like the following
$ grep assets output_with_a_*
output_with_a_false: assets.com.com : CNAME d207bhzu25u4mz.cloudfront.net.
output_with_a_true: assets.com.com : A [13.32.205.120 13.32.205.21 13.32.205.32 13.32.205.51 13.32.205.22 13.32.205.122 13.32.205.56 13.32.205.157 2600:9000:2145:5e00:1a:779f:fec0:93a1 2600:9000:2145:1e00:1a:779f:fec0:93a1 2600:9000:2145:9000:1a:779f:fec0:93a1 2600:9000:2145:9800:1a:779f:fec0:93a1 2600:9000:2145:de00:1a:779f:fec0:93a1 2600:9000:2145:2200:1a:779f:fec0:93a1 2600:9000:2145:ca00:1a:779f:fec0:93a1 2600:9000:2145:5600:1a:779f:fec0:93a1] : CNAME d207bhzu25u4mz.cloudfront.net.
Hey @edyesed, did u noticed, while using -cname, for the subdomain which don't have any cname entry, displays CNAME values same as A record ?
I'm not much on docs, and here it is.