<div dir="ltr">Hi Dimitry.<div>Views are selected by any/all of "match-clients" and "match-destinations". Once a view has been selected it is then completely responsible for handling the query, so there is no automatic fall through to the next view.<br><div><br></div><div>However, in the "DE" view you could configure global forwarding/forward only to the "default" view. You will need to be careful about IP addresses; make sure that this server itself - the IP address it will use as a query-source - does *not* appear in the "DE" ACL.</div></div><div><br></div><div>If a client matches the "DE" view but there is no zone matching the QNAME, the server will forward back to itself, but since the new source address does not match "DE" it will ignore that view and go to "default" instead.</div><div><br></div><div>I hope that helps.</div><div>Cheers, Greg</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 1 Dec 2024 at 17:13, Dimitry Bansikov <<a href="mailto:dimitry@bansikov.de">dimitry@bansikov.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>Hallo.</p>
    <p>I tried to create GeoIP DNS for one domain. So, its work great
      for <a href="http://example.com" target="_blank">example.com</a>, but it does not work for default domains in
      default view. As example DNS server for domain <a href="http://example2.com" target="_blank">example2.com</a> does
      not return any records for clients from DE. Yes, i know, to get
      worked i need to add <a href="http://example2.com" target="_blank">example2.com</a> to view "DE" section too. But if
      i have a lot of domains its too complex. Is there a way to add Geo
      zones only in Geo view and  if zone not found we get zone from
      default view?<br>
    </p>
    <p>acl "DE" {geoip country DE;};</p>
    view "DE" {<br>
        match-clients { DE; };<br>
        zone "<a href="http://example.com" target="_blank">example.com</a>" {type master; file
    "/etc/bind/geo/example.com_DE.db";};<br>
    };<br>
    <br>
    view "default" {<br>
        zone "<a href="http://example.com" target="_blank">example.com</a>" {type master; file
    "/etc/bind/db/example.com.db";};<br>
        zone "<a href="http://example2.com" target="_blank">example2.com</a>" {type master; file
    "/etc/bind/db/example2.com.db";};<br>
        ... lot of domains ...<br>
    };
    
  </div>

-- <br>
Visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>