群晖DNS Server和Let's Encrypt SSL证书群晖DNS Server和Let's Encrypt SSL证书群晖DNS Server和Let's Encrypt SSL证书群晖DNS Server和Let's Encrypt SSL证书
  • 首页
  • 博客
  • 文件
  • 书签
  • 分析
  • 登录
Search
Generic filters

群晖DNS Server和Let's Encrypt SSL证书

Published by admin at 2022年1月31日
Categories
  • NAS
Tags

1.      申请DNS服务 提供顶级域名DDNS

https://dns.he.net

群晖中设置DDNS

dyn.dns.he.net/nic/update?hostname=__HOSTNAME__&password=__PASSWORD__&myip=__MYIP__

Things to note about the dynamic DNS support:

Your "username" is going to be the name of the record that has been tagged dynamic. ie You marked the A record for dyn.example.com as dynamic. Your username will be "dyn.example.com"

You can tag an A or AAAA record by editing it once you have selected the zone. (check the box).

Once you have "activated" the record to be dynamic, you will need to generate a key (or password if you prefer) for it. (click on the generate icon) to generate the key for the dynamic record.

 

2.      群晖 Let's Encrypt 泛域名证书自动更新

http://www.up4dev.com/2018/05/29/synology-ssl-wildcard-cert-update/

一键脚本的项目地址:https://github.com/andyzhshg/syno-acme

 

# DNS类型,根据域名服务商而定

export DNS=dns_he

 

# Hurricane Electric DNS=dns_he

export HE_Username=" "

export HE_Password=" "

 

https://github.com/Neilpang/acme.sh/tree/master/dnsapi

https://github.com/acmesh-official/acme.sh/wiki/dnsapi

 

3.      完成

 

注:

1. dns_synology_dsm.sh 下载地址:

https://raw.githubusercontent.com/arabezar/acme.sh/dev/dnsapi/dns_synology_dsm.sh

 

 

2. Synology DNS Server 设置

1) 先准备一个域名,例如a.com,添加A记录ns1.a.com、ns2.a.com,指向Synology DNS Server的外网IP地址,例如121.200.121.88,这里可以利用https://dns.he.net的DDNS来指向内网IP。

2) 路由器设置端口映射,端口53,内部IP地址为Synology DNS Server的内网IP。

3) 将要解析的域名,例如b.com,的nameservers 设为Use custom nameservers:

Nameserver 1:NS1.A.COM ; Nameserver 2:NS2.A.COM

4) Synology DNS Server上创建 Master 区域,如下图,然后即可使用,例如添加A记录、MX记录等。

5) 检查源记录是否有以下记录,如没有则手工建立。

b.com.            NS          300         ns.b.com.

ns.b.com.        A            300         127.0.0.1

6) 完成后即可添加需要的记录了。

发表回复 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Categories

  • 猫
  • Python
  • MySQL
  • Django
  • Html/CSS
  • JavaScript
  • Vue
  • RegExp
  • php
  • Practice
  • Virtualization
  • Linux
  • Windows
  • Android
  • NAS
  • Software
  • Hardware
  • Network
  • Router
  • Office
  • WordPress
  • SEO
  • English
  • Games
  • Recipes
  • living
  • Memorandum
  • Essays
  • 未分类

归档

©2015-2022 Alaica Blog support@alaica.com