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