ammario / ipisp

Query IP address network information in Go
MIT License
66 stars 13 forks source link

Lookup via DNS #1

Closed jeffallen closed 8 years ago

jeffallen commented 8 years ago

Team-Cymru asks, "PLEASE use the DNS based service since it is faster and more efficient, particularly for larger deployments of individual IP based queries"

Why didn't you choose to do it this way? Go has what you need in the standard library already: https://golang.org/pkg/net/#LookupTXT

ammario commented 8 years ago

From the following warning on their website

WARNING: IPs that are seen abusing the whois server with large numbers of individual queries instead of using the bulk netcat interface will be null routed. If at all possible you should consider using the DNS based query interface since it is much more efficient for individual queries. The netcat interface should be used for large groups of IP lists at a time in one single TCP query.

I inferred that using the netcat interface would be acceptable as I'm keeping a single connection open for the entire duration of the client. I'll contact them and make changes if necessary.

jeffallen commented 8 years ago

Makes sense. Conflicting advice is hard to follow. 😃

On Sun, Jun 5, 2016, 05:23 Ammar Bandukwala notifications@github.com wrote:

From the following warning on their website

WARNING: IPs that are seen abusing the whois server with large numbers of individual queries instead of using the bulk netcat interface will be null routed. If at all possible you should consider using the DNS based query interface since it is much more efficient for individual queries. The netcat interface should be used for large groups of IP lists at a time in one single TCP query.

I inferred that using the netcat interface would be acceptable as I'm keeping a single connection open for the entire duration of the client. I'll contact them and make changes if necessary.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ammario/ipisp/issues/1#issuecomment-223783814, or mute the thread https://github.com/notifications/unsubscribe/ABFDwC8ohPBUJFFrCeayGj2RZFu5MbRAks5qIgkDgaJpZM4IuJJg .

Freeaqingme commented 8 years ago

I'll contact them and make changes if necessary.

Were you able to contact them and figure this out? I did attempt to contact them before, but never got a reply.

ammario commented 8 years ago

The following is the response I received

Greetings,

If you are planning on implementing the use of this service in any
software, application, or device PLEASE let us know in advance. We would
like to adequately plan for capacity and make sure that we can
adequately handle the load. If at all possible, PLEASE use the DNS based
service since it is faster and more efficient, particularly for larger
deployments of individual IP based queries.

We have had instances where large deployments are put in place without
informing us in advance, making it difficult to maintain a stable
service for the rest of the community.

Thank you!
ammario commented 8 years ago

DNS client added with c5a6bd387c4e568b04713abdd4b80205dbf827df