Skip to content

Instantly share code, notes, and snippets.

@3846masa
Created March 5, 2017 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3846masa/6c63a898b5a57c4cfe5f8f90ccc7d690 to your computer and use it in GitHub Desktop.
Save 3846masa/6c63a898b5a57c4cfe5f8f90ccc7d690 to your computer and use it in GitHub Desktop.
NX DNS switch hack
# https://github.com/obi12341/docker-unbound
unbound:
image: secns/unbound:1.6.0
ports:
- "53:53/udp"
- "53:53"
environment:
- DO_IPV6=yes
- DO_IPV4=yes
- DO_UDP=yes
- DO_TCP=yes
- VERBOSITY=0
- NUM_THREADS=1
- SO_RCVBUFF=0
- SO_SNDBUF=0
- SO_REUSEPORT=no
- EDNS_BUFFER_SIZE=4096
- MSG_CACHE_SIZE=4m
- RRSET_CACHE_SIZE=4m
- CACHE_MIN_TTL=0
- CACHE_MAX_TTL=86400
- CACHE_MAX_NEGATIVE_TTL=3600
- HIDE_IDENTITY=no
- HIDE_VERSION=no
- STATISTICS_INTERVAL=0
- STATISTICS_CUMULATIVE=no
- EXTENDED_STATISTICS=no
restart: always
volumes:
- './unbound.conf:/usr/local/etc/unbound/unbound.conf'
server:
verbosity: 2
directory: "/usr/local/etc/unbound"
interface: 0.0.0.0
access-control: 0.0.0.0/0 allow
username: "root"
logfile: "/var/log/unbound.log"
use-syslog: no
# Replace to IP of your server
local-data: "sega.jp. IN A 127.0.0.1"
local-data-ptr: "127.0.0.1 sega.jp."
forward-zone:
name: "."
forward-addr: 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment