packet_socket_op: throw an exception with invalid ifname
dns_example: get hostname from the command line