I'm needing some kind of a loop that will stop when the end results are already stored.
The information will be coming from the ON DNS event.

Basically, the user will issue /dns <host>, which will then return and address & ip from the ON DNS event.
If that address or ip is not already stored, then the information will be stored.
Next, the address and/or ip (which wasn't already stored) will be sent through the /dns command.
This process will continue until neither the address or the ip can be resolved or until both are already in the storage.

I hope I was clear in regards to what I'm trying to do.