using System;
using System.Net;
namespace FastGithub.Dns
{
    /// 
    /// dns服务选项
    /// 
    [Options("Dns")]
    sealed class DnsOptions
    {
        /// 
        /// 获取或设置上游ip地址
        /// 
        public IPAddress UpStream { get; set; } = IPAddress.Parse("114.114.114.114");
        /// 
        /// 获取或设置github相关域名的ip存活时长
        /// 
        public TimeSpan GithubTTL { get; set; } = TimeSpan.FromMinutes(10d);
        /// 
        /// 是否设置本机使用此dns
        /// 
        public bool SetToLocalMachine { get; set; } = true;
        /// 
        /// 是否启用反向代理
        /// 
        public bool UseReverseProxy { get; set; } = true;
    }
}