Added suport to detect and resolve hostnames

With this patch, we detect if an ip or a hostname has been passed, if it's a hostname it gets resolved prior checking in the rbls, it's the same as in pull request 4 but in a proper branch, with the remarks fixed.