Files
netch/Netch/Controllers/DNSController.cs
2020-08-16 07:28:46 +08:00

29 lines
594 B
C#

using System;
using Netch.Utils;
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();
}
}
}