added some lines to check if arg is a domain and get ip to be able to scan