mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
stubby: Initial commit of openwrt package for stubby daemon
(This daemon utilizes the getdns library) Signed-off-by: David Mora <iamperson347+public@gmail.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
START=50
|
||||
STOP=51
|
||||
|
||||
PROG=/usr/sbin/stubby
|
||||
|
||||
start_service() {
|
||||
procd_open_instance stubby
|
||||
procd_set_param command /usr/sbin/stubby
|
||||
|
||||
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
|
||||
|
||||
procd_set_param limits core="unlimited"
|
||||
|
||||
procd_set_param file /etc/stubby/stubby.yml
|
||||
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_set_param user stubby
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#NOTE: See '/etc/stubby/stubby.yml.default' for original config file and descriptions
|
||||
|
||||
resolution_type: GETDNS_RESOLUTION_STUB
|
||||
|
||||
dns_transport_list:
|
||||
- GETDNS_TRANSPORT_TLS
|
||||
|
||||
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
|
||||
|
||||
tls_query_padding_blocksize: 256
|
||||
|
||||
edns_client_subnet_private : 1
|
||||
|
||||
idle_timeout: 10000
|
||||
|
||||
listen_addresses:
|
||||
- 127.0.0.1@5453
|
||||
- 0::1@5453
|
||||
|
||||
round_robin_upstreams: 0
|
||||
|
||||
upstream_recursive_servers:
|
||||
# Quad 9 IPv6
|
||||
- address_data: 2620:fe::fe
|
||||
tls_auth_name: "dns.quad9.net"
|
||||
# IPv4 addresses
|
||||
# Quad 9 service
|
||||
- address_data: 9.9.9.9
|
||||
tls_auth_name: "dns.quad9.net"
|
||||
Reference in New Issue
Block a user