Add query type to search for IPv4 addresses.
Remove unused import.
Return 0 to the OS if everything worked.