From Scottish Gaelic Mac Iain-uidhir (literally “son of John the dun”), or perhaps mac an oighre (“son of the heir”).
MacNair (plural MacNairs)