dnsx icon indicating copy to clipboard operation
dnsx copied to clipboard

Problem in '-cname' argument

Open Sevada797 opened this issue 3 months ago • 2 comments

Hi, I am thankful for all the great work you are doing guys, just wanted to tell you about this issue.

dnsx version:

Latest version currently: 1.2.2 OS: Ubuntu 20.04

Current Behavior:

The -cname argument, which should have provided CNAME of the domain/subdomain doesn't seem to work

Example using dig (correct output):

$ dig cname jfkt.github.shopify.com | grep -i cname
;jfkt.github.shopify.com.    IN    CNAME
jfkt.github.shopify.com. 2204 IN    CNAME github.com.

$ dig cname eu2.deployment.api.varonis.io | grep -i cname
;eu2.deployment.api.varonis.io. IN  CNAME
eu2.deployment.api.varonis.io. 300 IN CNAME eastus2-prd-distributed-deployment-ep.azureedge.net.

But with dnsx:

$ echo jfkt.github.shopify.com | dnsx -silent -cname
jfkt.github.shopify.com

$ echo eu2.deployment.api.varonis.io | dnsx -silent -cname
eu2.deployment.api.varonis.io

Expected Behavior:

dnsx -cname Should've returned actual CNAME record

Steps To Reproduce:

Run: echo jfkt.github.shopify.com | dnsx -silent -cname

Output is just the input domain, not the real CNAME record (you can check on any order CNAME having domain/subdomain also)

Sevada797 avatar Sep 16 '25 13:09 Sevada797

I’ll work on a fix for this issue.

oxqnd avatar Sep 17 '25 07:09 oxqnd

@Sevada797 You need to use the -resp flag in order to obtain the record type response, otherwise the tool just filter out the inputs having the specific response type

Mzack9999 avatar Sep 24 '25 21:09 Mzack9999