Terms lookup with range?

I want a query like "is this IP address belong to addresses from the table?". And the table can have individual addresses, ranges (e.g, -, and/or mask (e.g, with lots of those.
Can I use "terms query with lookup" for this? Then how? If not, what'd be the best way to archive this?
Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.