Ecologists were able to successfully identify animals in a zoo simply by taking samples of DNA from the air.