Eigen DNS server

Status
Niet open voor verdere reacties.

Z500

Gebruiker
Lid geworden
27 jul 2006
Berichten
9
Hoi iedereen,

Ik heb mijn eigen DNS server op mijn readynas duo opgezet. Ik gebruik hiervoor DNSSEC Appliance (DAP) 0.8.4

In dit pakket zit dnsmasq

Nu werkt dit prima. Ik internet nu via mijn eigen DNS server.

Echter wil ik nu een website blokkeren doormiddel van het hosts bestand. De bedoeling is dus dat elk apparaat op het netwerk niet meer bij deze website kan komen.

Nu heb ik het volgende in mijn hosts bestand staan van dnsmasq:

# hosts for dnsmasq. Add as many hosts for your local domain
# as you wish. The format is:
# ip-address<space>hostname<space>otherhostname ...
# These will be resolvable for your network as hostname.yourdomain
192.168.0.100 dap
192.168.0.1 router
127.0.0.1 nu.nl
127.0.0.1 www.nu.nl


Alle interne adressen werken prima. als ik dap ping pingt hij nestjes naar 192.168.0.100. Echter externe sites - ik heb nu.nl als voorbeeld gebruikt - blijven gewoon verwijzen naar het echte adres. Dus niet naar 127.0.0.1.

Ik heb geen idee waar ik moet zoeken om dit op te lossen.

Stukje logbestand kan ik wel laten zien;

Code:
Jul 19 16:25:47 NAS dnsmasq[11611]: using local addresses only for domain intern
Jul 19 16:25:47 NAS dnsmasq[11611]: read /etc/hosts - 2 addresses
Jul 19 16:25:47 NAS dnsmasq[11611]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 19 16:25:47 NAS dnsmasq[11611]: read /usr/local/dap/etc/dnsmasq/hosts - 4 addresses
Jul 19 16:25:47 NAS dnsmasq[11611]: read /home/test - 2 addresses
Jul 19 16:25:48 NAS unbound: [11424:0] info: service stopped (unbound 1.4.14).
Jul 19 16:25:48 NAS unbound: [11424:0] info: server stats for thread 0: 18 queries, 11 answers from cache, 7 recursions, 0 prefetch
Jul 19 16:25:48 NAS unbound: [11424:0] info: server stats for thread 0: requestlist max 21 avg 10 exceeded 0 jostled 0
Jul 19 16:25:48 NAS unbound: [11424:0] info: average recursion processing time 0.932355 sec
Jul 19 16:25:48 NAS unbound: [11424:0] info: histogram of recursion processing times
Jul 19 16:25:48 NAS unbound: [11424:0] info: [25%]=0.057344 median[50%]=0.881072 [75%]=1.625
Jul 19 16:25:48 NAS unbound: [11424:0] info: lower(secs) upper(secs) recursions
Jul 19 16:25:48 NAS unbound: [11424:0] info:    0.000000    0.000001 1
Jul 19 16:25:48 NAS unbound: [11424:0] info:    0.032768    0.065536 1
Jul 19 16:25:48 NAS unbound: [11424:0] info:    0.524288    1.000000 2
Jul 19 16:25:48 NAS unbound: [11424:0] info:    1.000000    2.000000 2
Jul 19 16:25:48 NAS unbound: [11424:0] info:    2.000000    4.000000 1
Jul 19 16:25:50 NAS unbound: [11622:0] notice: init module 0: validator
Jul 19 16:25:50 NAS unbound: [11622:0] notice: init module 1: iterator
Jul 19 16:25:50 NAS unbound: [11622:0] info: start of service (unbound 1.4.14).
Jul 19 20:00:22 NAS ntpdate[14414]: can't find host time-e.netgear.com
Jul 19 20:00:43 NAS ntpdate[14414]: can't find host time-h.netgear.com
Jul 19 20:00:43 NAS ntpdate[14414]: no servers can be used, exiting
Jul 19 21:07:06 NAS init: Switching to runlevel: 6
Jul 19 21:07:13 NAS mini_httpd[8275]: exiting due to signal 15
Jul 19 21:07:13 NAS unbound: [11622:0] info: service stopped (unbound 1.4.14).
Jul 19 21:07:13 NAS unbound: [11622:0] info: server stats for thread 0: 16671 queries, 14645 answers from cache, 2026 recursions, 0 prefetch
Jul 19 21:07:13 NAS unbound: [11622:0] info: server stats for thread 0: requestlist max 35 avg 0.509872 exceeded 0 jostled 0
Jul 19 21:07:13 NAS unbound: [11622:0] info: average recursion processing time 0.201457 sec
Jul 19 21:07:13 NAS unbound: [11622:0] info: histogram of recursion processing times
Jul 19 21:07:13 NAS unbound: [11622:0] info: [25%]=0.00145326 median[50%]=0.00191634 [75%]=0.0377982
Jul 19 21:07:13 NAS unbound: [11622:0] info: lower(secs) upper(secs) recursions
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.000000    0.000001 35
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.000256    0.000512 1
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.000512    0.001024 1
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.001024    0.002048 1120
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.002048    0.004096 19
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.004096    0.008192 6
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.008192    0.016384 134
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.016384    0.032768 186
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.032768    0.065536 114
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.065536    0.131072 97
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.131072    0.262144 129
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.262144    0.524288 90
Jul 19 21:07:13 NAS unbound: [11622:0] info:    0.524288    1.000000 36
Jul 19 21:07:13 NAS unbound: [11622:0] info:    1.000000    2.000000 23
Jul 19 21:07:13 NAS unbound: [11622:0] info:    2.000000    4.000000 14
Jul 19 21:07:13 NAS unbound: [11622:0] info:    4.000000    8.000000 7
Jul 19 21:07:13 NAS unbound: [11622:0] info:    8.000000   16.000000 11
Jul 19 21:07:13 NAS unbound: [11622:0] info:   16.000000   32.000000 3
Jul 19 21:07:13 NAS dnsmasq[11611]: exiting on receipt of SIGTERM
Jul 20 04:00:27 NAS ntpdate[7938]: step time server 209.249.181.23 offset 18.558145 sec
Jul 20 06:25:35 NAS ntpdate[8979]: step time server 209.249.181.23 offset 0.096062 sec
Jul 20 08:00:07 NAS ntpdate[9328]: no server suitable for synchronization found
Jul 20 12:00:07 NAS ntpdate[11390]: no server suitable for synchronization found
Jul 20 13:04:49 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:04:49 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:04:49 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 3 addresses
Jul 20 13:05:28 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:05:28 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:05:28 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 3 addresses
Jul 20 13:06:11 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:06:11 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:06:11 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 3 addresses
Jul 20 13:10:22 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:10:22 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:10:22 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 2 addresses
Jul 20 13:10:59 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:10:59 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:10:59 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 3 addresses
Jul 20 13:56:02 NAS dnsmasq[1289]: read /etc/hosts - 2 addresses
Jul 20 13:56:02 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts.dynamic - 1 addresses
Jul 20 13:56:02 NAS dnsmasq[1289]: read /usr/local/dap/etc/dnsmasq/hosts - 4 addresses

Iemand die mij in de juiste richting kan helpen?

Alvast heel erg bedank!
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan