Skip to content

Commit e06560c

Browse files
committed
Merge branch 'main' of github.com:swiftwave-org/dns
2 parents 7a861b9 + 72aaf17 commit e06560c

6 files changed

+39
-0
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ jobs:
2727
goversion: "https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz"
2828
project_path: "."
2929
binary_name: "swiftwave-dns"
30+
extra_files: swiftwave-dns.service install.sh disable_systemd_resolve.sh enable_systemd_resolve.sh

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Swiftwave DNS
2+
3+
---
4+
5+
Micro DNS Server for auto resolve *.swiftwave.xyz domain to IP address to provision domain to all swiftwave users and facilitate TLS generation in swiftwave server to keep swiftwave safe and secure

disable_systemd_resolve.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# !/bin/env sh
2+
3+
sudo systemctl stop systemd-resolved
4+
sudo systemctl disable systemd-resolved
5+
sudo systemctl mask systemd-resolved

enable_systemd_resolve.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# !/bin/env sh
2+
3+
sudo systemctl start systemd-resolved
4+
sudo systemctl enabled systemd-resolved
5+
sudo systemctl unmask systemd-resolved

install.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# !/bin/env sh
2+
3+
# Move binary to /usr/bin
4+
sudo mv ./swiftwave-dns /usr/bin/
5+
6+
# Move service file to /etc/systemd/system/
7+
sudo mv ./swiftwave-dns.service /etc/systemd/system/
8+
9+
# Daemon reload and enable
10+
sudo systemctl daemon-reload
11+
sudo systemctl enable swiftwave-dns.service
12+
sudo systemctl start swiftwave-dns.service
13+

swiftwave-dns.service

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Swiftwave DNS
3+
After=multi-user.target
4+
5+
[Service]
6+
ExecStart=/usr/bin/swiftwave-dns
7+
Type=simple
8+
9+
[Install]
10+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)