Na domacim serveru mam nainstalovany unbound. DHCP prideluje pocitacum adresu pouze meho unbound serveru.
Nekolikrat za den se stane, ze v prohlizeci zadam treba google.cz a zobrazi se mi chyba o problemu s DNS. Staci parkrat zmacknout enter v adresim radku a vse zase funguje. Delaji to vsechny domeny, zadna jedna urcita.
Pouzivam Ubuntu 12.04 LTS server a unbound 1.4.16-1 z zdroju distribuce.
Zde je muj config:
# cat /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
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
# cat /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.example.net" redirect
local-data: "server.example.net A 192.168.1.1"
V syslogu nic neni.
Mate nekdo tuseni, proc se to deje?
Zatim jsem v DHCPD pridal pridelovani jeste 8.8.8.8, ale pak zase nejdou moje lokalni DNS zaznamy. Aktualne DNS server vyuzivaji 2 PC a 3 mobily. Problem se zatezi rozhodne byt nemuze.