Skip to content

Commit

Permalink
Version bump to v1.3.3 (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
semihalev committed Aug 6, 2023
1 parent 042e5de commit 8888ef7
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 145 deletions.
34 changes: 8 additions & 26 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ nfpms:

brews:
-
tap:
repository:
owner: semihalev
name: homebrew-tap
folder: Formula
Expand All @@ -122,31 +122,13 @@ brews:
commit_author:
name: semihalev
email: semihalev@gmail.com
plist: |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/sdns</string>
<string>-config</string>
<string>#{etc}/sdns.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardErrorPath</key>
<string>#{var}/log/sdns.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/sdns.log</string>
<key>WorkingDirectory</key>
<string>#{opt_prefix}</string>
</dict>
</plist>
service: |
run [opt_bin/"sdns", "-config", etc/"sdns.conf"]
keep_alive true
require_root true
error_log_path var/"log/sdns.log"
log_path var/"log/sdns.log"
working_dir opt_prefix
test: |
fork do
exec bin/"sdns", "-config", testpath/"sdns.conf"
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
ARG image=golang:1.20.5-alpine3.18
ARG IMAGE=golang:alpine3.18

FROM $image AS builder
FROM ${IMAGE} AS builder

COPY . /go/src/github.com/semihalev/sdns/

WORKDIR /go/src/github.com/semihalev/sdns

RUN apk --no-cache add \
ca-certificates \
gcc \
binutils-gold \
binutils-gold \
git \
musl-dev

Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $ make test
| ----------------- | ------------------------------------------------------------------------------ |
| -c, --config PATH | Location of the config file. If it doesn't exist, a new one will be generated. |
| -v, --version | Show the version of the sdns. |
| -h, --help | Show this message and exit.
| -h, --help | Show this help and exit. |

## Debugging Environment

Expand Down Expand Up @@ -142,36 +142,36 @@ example.com. 0 CH HINFO "Host" "IPv6:[2001:500:8d::53]:53 rtt:148ms health:[GOO
| -------------------- | ------------------------------------------------------------------------------------------------------------------- |
| **version** | Configuration version |
| **directory** | sdns working directory (must grant write access to sdns user) |
| **bind** | DNS server binding address. Default: :53 |
| **bindtls** | DNS-over-TLS server binding address. Default: :853 |
| **binddoh** | DNS-over-HTTPS server binding address. Default: :8053 |
| **binddoq** | DNS-over-QUIC server binding address. Default: :853 |
| **bind** | DNS server binding address Default: :53 |
| **bindtls** | DNS-over-TLS server binding address Default: :853 |
| **binddoh** | DNS-over-HTTPS server binding address Default: :8053 |
| **binddoq** | DNS-over-QUIC server binding address Default: :853 |
| **tlscertificate** | Path to the TLS certificate file |
| **tlsprivatekey** | Path to the TLS private key file |
| **outboundips** | Outbound IPv4 addresses (randomly chosen if multiple entries provided) |
| **outboundip6s** | Outbound IPv6 addresses (randomly chosen if multiple entries provided) |
| **rootservers** | DNS Root IPv4 servers |
| **root6servers** | DNS Root IPv6 servers |
| **rootkeys** | Trusted DNSSEC anchors |
| **fallbackservers** | Failover resolver IPv4 or IPv6 addresses with port (leave blank to disable). Example: "8.8.8.8:53" |
| **forwarderservers** | Forwarder resolver IPv4 or IPv6 addresses with port (leave blank to disable). Example: "8.8.8.8:53" |
| **fallbackservers** | Failover resolver IPv4 or IPv6 addresses with port (leave blank to disable) Example: "8.8.8.8:53" |
| **forwarderservers** | Forwarder resolver IPv4 or IPv6 addresses with port (leave blank to disable) Example: "8.8.8.8:53" |
| **api** | HTTP API server binding address (leave blank to disable) |
| **blocklists** | Remote blocklist address list (downloaded to the blocklist folder) |
| **blocklistdir** | [DEPRECATED] Directory creation is automated in the working directory |
| **loglevel** | Log verbosity level (crit, error, warn, info, debug) |
| **accesslog** | Location of the access log file (leave blank to disable). Default: Common Log Format |
| **accesslog** | Location of the access log file (leave blank to disable) Default: Common Log Format |
| **nullroute** | IPv4 address for forwarding blocked queries |
| **nullroutev6** | IPv6 address for forwarding blocked queries |
| **accesslist** | Client whitelist for query permissions |
| **querytimeout** | Maximum wait duration for DNS query response. Default: 10s |
| **timeout** | Network timeout duration for each DNS lookup. Default: 2s |
| **querytimeout** | Maximum wait duration for DNS query response Default: 10s |
| **timeout** | Network timeout duration for each DNS lookup Default: 2s |
| **hostsfile** | Enable serving zone data from a hosts file (leave blank to disable) |
| **expire** | Default error cache TTL (in seconds). Default: 600 |
| **cachesize** | Cache size (total records in cache). Default: 256000 |
| **expire** | Default error cache TTL (in seconds) Default: 600 |
| **cachesize** | Cache size (total records in cache) Default: 256000 |
| **prefetch** | Cache prefetch before expiry (threshold: 10%-90%, 0 to disable) |
| **maxdepth** | Maximum iteration depth per query. Default: 30 |
| **ratelimit** | Query-based rate limit per second (0 to disable). Default: 0 |
| **clientratelimit** | Client IP address-based rate limit per minute (no limit if client supports EDNS cookie). Default: 0 |
| **maxdepth** | Maximum iteration depth per query Default: 30 |
| **ratelimit** | Query-based rate limit per second (0 to disable) Default: 0 |
| **clientratelimit** | Client IP address-based rate limit per minute (no limit if client supports EDNS cookie) Default: 0 |
| **blocklist** | Manual blocklist entries |
| **whitelist** | Manual whitelist entries |
| **cookiesecret** | DNS cookie secret (RFC 7873) - auto-generated if not set |
Expand Down
Loading

0 comments on commit 8888ef7

Please sign in to comment.