Fix MRN-931. Hostname validation fixed

Change-Id: I96cb8ee13e2905fab9ba41b6dea1ae84b74c7765