How can i get absolute domains?
kotyara1005 opened this issue · 5 comments
When i use dig i obtain absolute domain names:
;; ANSWER SECTION:
google.com. 5 IN NS ns1.google.com.
google.com. 5 IN NS ns3.google.com.
google.com. 5 IN NS ns4.google.com.
google.com. 5 IN NS ns2.google.com.
But aiodns gives me relative domains:
[ares_query_ns_result(host='ns3.google.com', ttl=None), ares_query_ns_result(host='ns4.google.com', ttl=None), ares_query_ns_result(host='ns2.google.com', ttl=None), ares_query_ns_result(host='ns1.google.com', ttl=None)]
Is the way to get true data exists?
I'm not sure I understand, aiodns gives you the same thing (module the TTL, which I think I made available in a newer pycares release) so how would you like to see the results?
I mean that aiodns or pycares strip trailing dot in domain name. It's not right, "ns1.google.com" and "ns1.google.com." are different domains.
The dot is not stripped by those libraries, it must be c-ares, I guess. You can try to compile c-ares and use their adig
tool to see what it returns exactly.