Ahoj, potrebuju vsechny DNS dotazy presmerovat na localhost. Pouzivam unbound 1.4.16 s nasledujicim nastavenim:
# cat /etc/unbound/unbound.conf
server:
auto-trust-anchor-file: "/var/lib/unbound/root.key"
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
chroot: ""
username: "unbound"
hide-identity: yes
hide-version: yes
use-syslog: yes
directory: "/etc/unbound"
local-zone: "abc." static
local-data: "server.abc. IN A 192.168.1.1"
local-data: "*.server.abc. IN CNAME server.abc."
local-data-ptr: "192.168.1.1 server.abc"
local-zone: "google.cz" redirect
local-data: "google.cz A 192.168.1.1"
[b]local-zone: "*" redirect
local-data: "* A 192.168.1.1"[/b]
forward-zone:
name: "."
forward-addr: 8.8.8.8
forward-addr: 217.31.204.130
kdyz v prohlizeci prejdu na adresu google.cz, tak me to presmeruju na server (192.168.1.1). Zkousel jsem pridat sekci "* A 192.168.1.1", ale nefunguje. Nedalo by se to nejak dat do "forward-zone"? Jak se to da zapsat?