Skip to content

Commit

Permalink
Merge branch 'main' of github.com:swiftwave-org/dns
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Nov 21, 2023
2 parents 7a861b9 + 72aaf17 commit e06560c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ jobs:
goversion: "https://dl.google.com/go/go1.21.3.linux-amd64.tar.gz"
project_path: "."
binary_name: "swiftwave-dns"
extra_files: swiftwave-dns.service install.sh disable_systemd_resolve.sh enable_systemd_resolve.sh
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Swiftwave DNS

---

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
5 changes: 5 additions & 0 deletions disable_systemd_resolve.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# !/bin/env sh

sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved
sudo systemctl mask systemd-resolved
5 changes: 5 additions & 0 deletions enable_systemd_resolve.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# !/bin/env sh

sudo systemctl start systemd-resolved
sudo systemctl enabled systemd-resolved
sudo systemctl unmask systemd-resolved
13 changes: 13 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# !/bin/env sh

# Move binary to /usr/bin
sudo mv ./swiftwave-dns /usr/bin/

# Move service file to /etc/systemd/system/
sudo mv ./swiftwave-dns.service /etc/systemd/system/

# Daemon reload and enable
sudo systemctl daemon-reload
sudo systemctl enable swiftwave-dns.service
sudo systemctl start swiftwave-dns.service

10 changes: 10 additions & 0 deletions swiftwave-dns.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Swiftwave DNS
After=multi-user.target

[Service]
ExecStart=/usr/bin/swiftwave-dns
Type=simple

[Install]
WantedBy=multi-user.target

0 comments on commit e06560c

Please sign in to comment.