-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstellation-dns.service
More file actions
41 lines (34 loc) · 1.01 KB
/
Copy pathconstellation-dns.service
File metadata and controls
41 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[Unit]
Description=Constellation DNS server
Documentation=https://github.com/your-org/constellation-dns
After=network.target
[Service]
# Run as a specific user (modify as needed)
# User=constellation
# Group=constellation
# Path to the executable (adjust path as needed)
ExecStart=/usr/local/bin/constellation-dns
# Configuration
# By default, looks for config at /etc/constellation-dns/config.toml
# Uncomment and modify if needed:
# ExecStart=/usr/local/bin/constellation-dns --config /path/to/custom/config.toml
# Restart on failure
Restart=on-failure
RestartSec=5s
# Security measures
ProtectSystem=full
PrivateTmp=true
ProtectHome=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
MemoryDenyWriteExecute=true
# Allow binding to privileged port 53 (DNS)
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target