<div dir="ltr"><div><div><div><div><div>I have found a workaround.<br></div>I defined a different zone for every network<br><br></div>My config files are now<br><br></div>/tec/bind/named.conf<br><br>include "/etc/bind/named.conf.options";<br>include "/etc/bind/named.conf.local"; <br><br></div>/etc/bind/named.conf.local<br><br>view "local" {<br>    match-clients { localhost; };<br>        zone "home.lan" IN {<br>        type master;<br>        file "/etc/bind/db.home.lan";<br>    };<br>};<br>view "ext" {<br>    match-clients { <a href="http://192.168.2.0/24;" target="_blank">192.168.2.0/24;</a>};<br>    zone "home2.lan" IN {<br>        type master;<br>        file "/etc/bind/db.rev.2.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan0" {<br>    match-clients { <a href="http://192.168.3.0/24;" target="_blank">192.168.3.0/24;</a>};<br>    zone "home3.lan" IN {<br>        type master;<br>        file "/etc/bind/db.rev.3.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan00" {<br>    match-clients {<a href="http://192.168.4.0/24;" target="_blank">192.168.4.0/24;</a>};<br>    zone "home4.lan" IN {<br>        type master;<br>        file "/etc/bind/db.rev.4.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan01" {<br>    match-clients {<a href="http://192.168.5.0/24;" target="_blank">192.168.5.0/24;</a>};<br>    zone "home5.lan" IN {<br>        type master;<br>        file "/etc/bind/db.rev.5.168.192.in-addr.arpa";<br>    };<br>};<br>view "int" {<br>    match-clients {<a href="http://192.168.10.0/24;" target="_blank">192.168.10.0/24;</a>};<br>    zone "home10.lan" IN {<br>        type master;<br>        file "/etc/bind/db.rev.10.168.192.in-addr.arpa";<br>    };<br>};<br><br></div>/etc/bind/db.rev.10.168.192.in-addr.arpa<br><br>; IP Address-to-Host DNS Pointers for the 192.168.10 subnet<br>home10.lan. IN SOA DEV.home10.lan. hostmaster.home10.lan. (<br>        <a href="tel:2013120101" value="+12013120101" target="_blank">2013120101</a> ; serial<br>        8H ; refresh<br>        4H ; retry<br>        4W ; expire<br>        1D ; minimum<br>    )<br>; define the authoritative name server<br>home10.lan. IN NS DEV.home10.lan.<br>home10.lan. IN MX 10 DEV.home10.lan.<br><br>localhost IN A 127.0.0.1<br>DEV IN A 192.168.10.1<br>router IN A 192.168.10.1<br>proxy IN CNAME DEV.home10.lan.<br>wpad IN A 192.168.10.1<br><br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-28 19:59 GMT+01:00  <span dir="ltr"><<a href="mailto:chriswaeldchen@outlook.de" target="_blank">chriswaeldchen@outlook.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Thank you for the helpful answer.<br></div>I changed the file /etc/bind/named.conf.local to<br><br>view "local" {<br>    match-clients { 127.0.0.1; };<br>        zone "home.lan" IN {<br>        type master;<br>        file "/etc/bind/db.home.lan";<br>    };<br>};<br>view "ext" {<br>    match-clients { <a href="http://192.168.2.0/24;" target="_blank">192.168.2.0/24;</a>};<br>    zone "2.168.192.in-addr.arpa" {<br>        type master;<br>        file "/etc/bind/db.rev.2.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan0" {<br>    match-clients { <a href="http://192.168.3.0/24;" target="_blank">192.168.3.0/24;</a>};<br>    zone "3.168.192.in-addr.arpa" {<br>        type master;<br>        file "/etc/bind/db.rev.3.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan00" {<br>    match-clients {<a href="http://192.168.4.0/24;" target="_blank">192.168.4.0/24;</a>};<br>    zone "4.168.192.in-addr.arpa" {<br>        type master;<br>        file "/etc/bind/db.rev.4.168.192.in-addr.arpa";<br>    };<br>};<br>view "wlan01" {<br>    match-clients {<a href="http://192.168.5.0/24;" target="_blank">192.168.5.0/24;</a>};<br>    zone "5.168.192.in-addr.arpa" {<br>        type master;<br>        file "/etc/bind/db.rev.5.168.192.in-addr.arpa";<br>    };<br>};<br>view "int" {<br>    match-clients {<a href="http://192.168.10.0/24;" target="_blank">192.168.10.0/24;</a>};<br>    zone "10.168.192.in-addr.arpa" {<br>        type master;<br>        file "/etc/bind/db.rev.10.168.192.in-addr.arpa";<br>    };<br>};<br><br><br></div>But now I get Non-existent domain error  (on the raspberry machine) for <br></div>- nslookup localhost<br></div>- nslookup DEV.home.lan<br><br></div>I don't understand why it can't find neither the localhost nor the DEV.home.lan entry in /etc/bind/db.home.lan <br><br><br></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-12-27 22:57 GMT+01:00 Jeremy C. Reed <span dir="ltr"><<a href="mailto:jreed@isc.org" target="_blank">jreed@isc.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 27 Dec 2014, Christian Kette wrote:<br>
<br>
> I have some questions. Q1: Why do I get the IP address "192.168.2.100" for<br>
> "DEV.home.lan" from both the <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> and the <a href="http://192.168.10.0/24" target="_blank">192.168.10.0/24</a> network?<br>
<br>
The view that matches first is used.<br>
<br>
> #include "/etc/bind/named.conf.default-zones";<br>
...<br>
> Q2: What exactly are these zones in the file for? Do I need them?<br>
<br>
You didn't include the file in the email. But I found a copy via google<br>
which may be the same.  You probably don't need it. (For example, the<br>
priming hints are builtin to named.)<br>
<br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>