Nocturnal mammal closely related to the dog