Hi Everyone - is there a way wherein we can update hosts file before or after we deploy a worker or web role on a cloud service?
I need to add a DNS record with directly accessing or remoting the cloud service vm instace.
Thanks
John
Technology Tips and News
Hi Everyone - is there a way wherein we can update hosts file before or after we deploy a worker or web role on a cloud service?
I need to add a DNS record with directly accessing or remoting the cloud service vm instace.
Thanks
John
Managed to resolved this by doing it programatically.
using (StreamWriter w = File.AppendText( Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "drivers/etc/hosts"))) { w.WriteLine("SOMEIP NAME"); }
Thanks
Managed to resolved this by doing it programatically.
using (StreamWriter w = File.AppendText( Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "drivers/etc/hosts"))) { w.WriteLine("SOMEIP NAME"); }
Thanks
Managed to resolved this by doing it programatically.
using (StreamWriter w = File.AppendText( Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "drivers/etc/hosts"))) { w.WriteLine("SOMEIP NAME"); }
Thanks
Hi,
Thanks for sharing your solution, it is beneficial to others who encounter the similar issue, if you have any difficulty in future, welcome to our forum.
Best Regards,
Jambor