Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve multiple ANSWER SECTION #614

Open
JaveleyQAQ opened this issue Mar 29, 2024 · 7 comments
Open

How to retrieve multiple ANSWER SECTION #614

JaveleyQAQ opened this issue Mar 29, 2024 · 7 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.

Comments

@JaveleyQAQ
Copy link

JaveleyQAQ commented Mar 29, 2024

dnsx version:

Current dnsx version 1.2.1 (latest)

Current Behavior:

❯ echo "www.gogole.com" |dnsx -silent -a -resp -r 1.2.4.8, 8.8.8.8
www.gogole.com [A] [198.18.4.92]
❯ echo "www.gogole.com" |dnsx -silent -a -resp -r 1.2.4.8
www.gogole.com [A] [142.251.43.3]
❯ echo "www.gogole.com" |dnsx -silent -a -resp -r 8.8.8.8
www.gogole.com [A] [172.217.26.227

Expected Behavior:

❯ echo "www.gogole.com" |dnsx -silent -a -resp -r 1.2.4.8, 8.8.8.8 -silent
www.gogole.com [A] [172.217.26.227]
www.gogole.com [A] [142.251.43.3]

Steps To Reproduce:

Anything else:

@JaveleyQAQ JaveleyQAQ added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Mar 29, 2024
@ehsandeep
Copy link
Member

@JaveleyQAQ this looks like multiple query, do you have dig example that returns both answer in single dig query?

@JaveleyQAQ
Copy link
Author

@JaveleyQAQ this looks like multiple query, do you have dig example that returns both answer in single dig(挖) query?

I'm unable to retrieve multiple results in the case of Google; it seems that the A records are returned randomly. However, there are indeed multiple A records present.
image

@ehsandeep
Copy link
Member

@JaveleyQAQ in that case it's already working as expected.

echo www.sysgeek.cn | dnsx -resp

      _             __  __
   __| | _ __   ___ \ \/ /
  / _' || '_ \ / __| \  / 
 | (_| || | | |\__ \ /  \ 
  \__,_||_| |_||___//_/\_\

		projectdiscovery.io

[INF] Current dnsx version 1.2.1 (latest)
www.sysgeek.cn [A] [104.21.22.127] 
www.sysgeek.cn [A] [172.67.205.9] 

@JaveleyQAQ
Copy link
Author

Indeed, while I may not be fully versed in the intricacies of DNS operations, it's worth noting that performing an online multi-node ping on a target domain name can yield multiple distinct A records, which might not be the case when using standard DNS lookup tools. For instance, you can observe this phenomenon on the ITDOG website, which offers comprehensive ping services across various regions and networks: https://www.itdog.cn/ping/outlook.live.com. @ehsandeep

@pdelteil
Copy link

How can a ping request will result in multiple A records?

@JaveleyQAQ
Copy link
Author

How can a ping request will result in multiple A records?

This indicates that the domain name has multiple A records bound to it, but this situation is generally caused by a Content Delivery Network (CDN). When a domain name has multiple A records, it suggests that the domain is using a CDN for proxy services. Depending on the visitor's location, it will prioritize returning the cache that offers faster access speeds.

@Mzack9999
Copy link
Member

@JaveleyQAQ It seems like dnsx behaves as expected, as it returns all A records depending on the resolver providing the response. I guess what you are looking for is performing the request on all provided dns resolvers and aggregating the responses?

@Mzack9999 Mzack9999 added the Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all. label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.
Projects
None yet
Development

No branches or pull requests

4 participants