Update dns_server.service

This commit is contained in:
Sunil Purushottam Thakare
2025-06-04 15:16:36 +05:30
committed by GitHub
parent e42c2c4ac2
commit a6644d8bc4

View File

@@ -6,8 +6,11 @@ After=network.target
User=dnsuser
Group=dnsuser
WorkingDirectory=/var/nx9-dns-server
ExecStart=/var/dns-server/nx9-dns_server # Run directly, skip wrapper
ExecStart=/var/dns-server/nx9-dns_server
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
Restart=always
Environment=DNS_BIND=0.0.0.0:53
Environment=DNS_ENABLE_IPV6=1
Environment=DNS_MAX_PACKET_SIZE=4096