Created
December 26, 2015 19:08
-
-
Save tuxmartin/25d45e3fa6d8b879b353 to your computer and use it in GitHub Desktop.
Staticky zaznam DNS ve vlastni siti
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/unbound/dns_zaznamy | |
local-zone: "lan." static | |
local-data: "server.lan. IN A 192.168.1.1" | |
local-data: "pc.lan. IN A 192.168.1.10" | |
local-data: "*.server.lan. IN CNAME server.lan." | |
local-data: "*.pc.lan. IN CNAME pc.lan." | |
local-data-ptr: "192.168.1.1 server.lan" | |
local-data-ptr: "192.168.1.10 pc.lan" | |
#----------------- | |
local-zone: "server.domena.cz" redirect | |
local-data: "server.domena.cz A 192.168.1.1" | |
#----------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/unbound/unbound.conf | |
server: | |
verbosity: 1 | |
interface: 0.0.0.0 | |
port: 53 | |
do-ip4: yes | |
do-ip6: no | |
do-udp: yes | |
do-tcp: yes | |
do-daemonize: yes | |
access-control: 0.0.0.0/0 refuse | |
access-control: 192.168.0.0/16 allow | |
access-control: 10.123.0.0/16 allow | |
chroot: "" | |
username: "unbound" | |
hide-identity: yes | |
hide-version: yes | |
use-syslog: yes | |
directory: "/etc/unbound" | |
cache-max-ttl: 3600 | |
include: "/etc/unbound/dns_zaznamy" | |
forward-zone: | |
name: "." | |
forward-addr: 8.8.8.8 #Google Public DNS | |
forward-addr: 8.8.4.4 #Google Public DNS | |
forward-addr: 217.31.204.130 #CZ.NIC | |
forward-addr: 217.31.204.131 #CZ.NIC | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment