Domain Mapping option isn't appearing for main site

The option to map domains is present for subsites but not for the main site.
I need to map a domain to the main site. What can I do?