aio-libs / aio-libs/aiodns

I was wondering if it would be worth creating more robust error responses when a query fails?

Abierto
#113 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
592
Forks
76
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

As an example of code that fails but could give more helpful responses.
`query('8.8.8.8', 'PTR')`
This on the other hand works.
`query('8.8.8.8.in-addr.arpa.','PTR')`
If a user is new to the using the library and a response returns no output. It could recommend trying resolvehostbyaddr().
Alternatively it could recommend flipping the ip string and adding .in-addr.arpa before running a query.
`ip=ip[::-1]+'.in-addr.arpa.'`
I was wondering what you thought about adding this to help beginners with using your library?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.