Geo DNS for 1 domain in view impossible?

Dimitry Bansikov dimitry at bansikov.de
Sun Dec 1 17:13:22 UTC 2024


Hallo.

I tried to create GeoIP DNS for one domain. So, its work great for 
example.com, but it does not work for default domains in default view. 
As example DNS server for domain example2.com does not return any 
records for clients from DE. Yes, i know, to get worked i need to add 
example2.com 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?

acl "DE" {geoip country DE;};

view "DE" {
     match-clients { DE; };
     zone "example.com" {type master; file 
"/etc/bind/geo/example.com_DE.db";};
};

view "default" {
     zone "example.com" {type master; file "/etc/bind/db/example.com.db";};
     zone "example2.com" {type master; file 
"/etc/bind/db/example2.com.db";};
     ... lot of domains ...
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20241201/0e340b48/attachment.htm>


More information about the bind-users mailing list