Import coredns-1.6.9.
CoreDNS is a DNS server/forwarder, written in Go, that chains plugins. Each plugin performs a (DNS) function. <...> input/ok sthen@
This commit is contained in:
parent
6793a5e360
commit
68ba5b72e3
29
net/coredns/Makefile
Normal file
29
net/coredns/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2020/05/16 12:42:14 ajacoutot Exp $
|
||||
|
||||
COMMENT= fast and flexible DNS server/forwarder
|
||||
|
||||
GH_ACCOUNT= coredns
|
||||
GH_TAGNAME= v1.6.9
|
||||
GH_PROJECT= coredns
|
||||
|
||||
CATEGORIES= net sysutils
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# Apache v2.0
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += c pthread
|
||||
|
||||
MODULES= lang/go
|
||||
|
||||
MASTER_SITES= https://distfiles.bsdfrog.org/
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/coredns
|
||||
${INSTALL_DATA} ${FILESDIR}/Corefile ${PREFIX}/share/examples/coredns
|
||||
.for s in 1 5 7
|
||||
${INSTALL_MAN} ${WRKSRC}/man/*.${s} ${PREFIX}/man/man${s}/
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/coredns/distinfo
Normal file
2
net/coredns/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (coredns-1.6.9.tar.gz) = fN83sUDUAEV3bs/0fhcNtMa9ByqwDJd0MWYxtK585Oc=
|
||||
SIZE (coredns-1.6.9.tar.gz) = 6727220
|
33
net/coredns/files/Corefile
Normal file
33
net/coredns/files/Corefile
Normal file
@ -0,0 +1,33 @@
|
||||
(base) {
|
||||
errors
|
||||
#log
|
||||
|
||||
# enable metrics: http://localhost:9153/metrics
|
||||
prometheus
|
||||
|
||||
# disable IPv6
|
||||
#template ANY AAAA . {
|
||||
# rcode NXDOMAIN
|
||||
#}
|
||||
}
|
||||
|
||||
(cache) {
|
||||
cache {
|
||||
# success 1024
|
||||
# denial 0
|
||||
# prefetch 128 30s 10%
|
||||
}
|
||||
}
|
||||
|
||||
.:53 {
|
||||
import base
|
||||
import cache
|
||||
forward . 8.8.8.8 1.1.1.1
|
||||
health 127.0.0.1:8080
|
||||
#import /etc/coredns/conf.d/*.conf
|
||||
}
|
||||
|
||||
#consul:53 {
|
||||
# import base
|
||||
# forward . 127.0.0.1:8600
|
||||
#}
|
13
net/coredns/pkg/DESCR
Normal file
13
net/coredns/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
CoreDNS is a DNS server/forwarder, written in Go, that chains plugins.
|
||||
Each plugin performs a (DNS) function.
|
||||
|
||||
CoreDNS is a Cloud Native Computing Foundation graduated project.
|
||||
|
||||
CoreDNS is a fast and flexible DNS server. The key word here is flexible: with
|
||||
CoreDNS you are able to do what you want with your DNS data by utilizing
|
||||
plugins. If some functionality is not provided out of the box you can add it by
|
||||
writing a plugin.
|
||||
|
||||
CoreDNS can listen for DNS requests coming in over UDP/TCP (go'old DNS), TLS
|
||||
(RFC 7858), also called DoT, DNS over HTTP/2 - DoH - (RFC 8484) and gRPC (not a
|
||||
standard).
|
53
net/coredns/pkg/PLIST
Normal file
53
net/coredns/pkg/PLIST
Normal file
@ -0,0 +1,53 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/05/16 12:42:14 ajacoutot Exp $
|
||||
@rcscript ${RCDIR}/coredns
|
||||
@bin bin/coredns
|
||||
@man man/man1/coredns.1
|
||||
@man man/man5/corefile.5
|
||||
@man man/man7/coredns-acl.7
|
||||
@man man/man7/coredns-any.7
|
||||
@man man/man7/coredns-auto.7
|
||||
@man man/man7/coredns-autopath.7
|
||||
@man man/man7/coredns-azure.7
|
||||
@man man/man7/coredns-bind.7
|
||||
@man man/man7/coredns-bufsize.7
|
||||
@man man/man7/coredns-cache.7
|
||||
@man man/man7/coredns-cancel.7
|
||||
@man man/man7/coredns-chaos.7
|
||||
@man man/man7/coredns-clouddns.7
|
||||
@man man/man7/coredns-debug.7
|
||||
@man man/man7/coredns-dnssec.7
|
||||
@man man/man7/coredns-dnstap.7
|
||||
@man man/man7/coredns-erratic.7
|
||||
@man man/man7/coredns-errors.7
|
||||
@man man/man7/coredns-etcd.7
|
||||
@man man/man7/coredns-file.7
|
||||
@man man/man7/coredns-forward.7
|
||||
@man man/man7/coredns-grpc.7
|
||||
@man man/man7/coredns-health.7
|
||||
@man man/man7/coredns-hosts.7
|
||||
@man man/man7/coredns-import.7
|
||||
@man man/man7/coredns-k8s_external.7
|
||||
@man man/man7/coredns-kubernetes.7
|
||||
@man man/man7/coredns-loadbalance.7
|
||||
@man man/man7/coredns-log.7
|
||||
@man man/man7/coredns-loop.7
|
||||
@man man/man7/coredns-metadata.7
|
||||
@man man/man7/coredns-metrics.7
|
||||
@man man/man7/coredns-nsid.7
|
||||
@man man/man7/coredns-pprof.7
|
||||
@man man/man7/coredns-ready.7
|
||||
@man man/man7/coredns-reload.7
|
||||
@man man/man7/coredns-rewrite.7
|
||||
@man man/man7/coredns-root.7
|
||||
@man man/man7/coredns-route53.7
|
||||
@man man/man7/coredns-secondary.7
|
||||
@man man/man7/coredns-sign.7
|
||||
@man man/man7/coredns-template.7
|
||||
@man man/man7/coredns-tls.7
|
||||
@man man/man7/coredns-trace.7
|
||||
@man man/man7/coredns-transfer.7
|
||||
@man man/man7/coredns-whoami.7
|
||||
share/examples/coredns/
|
||||
@sample ${SYSCONFDIR}/coredns/
|
||||
share/examples/coredns/Corefile
|
||||
@sample ${SYSCONFDIR}/coredns/Corefile
|
17
net/coredns/pkg/coredns.rc
Normal file
17
net/coredns/pkg/coredns.rc
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/ksh
|
||||
#
|
||||
# $OpenBSD: coredns.rc,v 1.1.1.1 2020/05/16 12:42:14 ajacoutot Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/coredns"
|
||||
daemon_flags="-conf ${SYSCONFDIR}/coredns/Corefile"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_bg=YES
|
||||
|
||||
rc_start() {
|
||||
${rcexec} "${daemon} ${daemon_flags} 2>&1 |
|
||||
logger -p daemon.info -t coredns"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user