mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
26 lines
560 B
C#
26 lines
560 B
C#
namespace Netch.Controllers
|
|
{
|
|
public class DNSController : Controller
|
|
{
|
|
public DNSController()
|
|
{
|
|
Name = "DNS Service";
|
|
MainFile = "unbound.exe";
|
|
// RedirectStd = false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 启动DNS服务
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool Start()
|
|
{
|
|
return StartInstanceAuto("-c unbound-service.conf -v");
|
|
}
|
|
|
|
public override void Stop()
|
|
{
|
|
StopInstance();
|
|
}
|
|
}
|
|
} |