add validator.
refactor: query by ip - add IpInBytes.
Merge pull request #498 from forumbyr/master

refactor: refine query process