Skip to content

Is there a way to know the server url and protocol used ? #1199

Answered by rthalley
abhitrip07 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the Answer object from resolver methods, e.g. dns.resolver.resolve() has a nameserver attribute which is the IP address of the nameserver which answered the query for non-HTTP-based queries, and the URL for HTTP-based queries.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@abhitrip07
Comment options

Answer selected by rthalley
Comment options

You must be logged in to vote
1 reply
@abhitrip07
Comment options

Comment options

You must be logged in to vote
1 reply
@abhitrip07
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants