add a cmd to query for ip or url