The cavity in the head of a vertebrate that is lined by a membrane rich in sensitive olfactory receptors (see olfaction). It is connected to the exterior by external nostrils and (in air-breathing vertebrates) to the respiratory system by internal nares.