DnsServerApp: added service info for users.

This commit is contained in:
Shreyas Zare
2017-11-04 20:22:50 +05:30
parent 80dee5974e
commit ab41afe110
2 changed files with 17 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ namespace DnsServerApp
service.Start(); service.Start();
Console.WriteLine("Technitium DNS Server was started successfully."); Console.WriteLine("Technitium DNS Server was started successfully.");
Console.WriteLine("Using config folder: " + service.ConfigFolder);
Console.WriteLine("");
Console.WriteLine("Note: Open http://localhost:" + service.WebServicePort + " in web browser to access web console.");
Console.WriteLine("");
Console.WriteLine("Press ENTER key to stop..."); Console.WriteLine("Press ENTER key to stop...");
Console.ReadLine(); Console.ReadLine();

View File

@@ -1392,6 +1392,19 @@ namespace DnsServerCore
} }
#endregion #endregion
#region properties
public string ConfigFolder
{ get { return _configFolder; } }
public string ServerDomain
{ get { return _serverDomain; } }
public int WebServicePort
{ get { return _webServicePort; } }
#endregion
} }
public class UserSession public class UserSession