To Enter Somalia everyone needs a visa, you can get one at the border. Visas are available on arrival and cost around US$50.
Somalia Embassy
For Somaliland a visa on arrival is available for vistors from European Union, Bahrain, Brazil, Canada, China, Djibouti, Egypt, Eritrea, Ethiopia, Kenya, Kuwait, Morocco, Oman, Russia, Qatar, Saudi Arabia, Somalia, South Africa, South Sudan, Sudan, Switzerland, Taiwan, Turkey, Uganda, United Arab Emirates, United Kingdom and United States
Somaliland visa on arrival
Somaliland immigration