abh / geodns

DNS server with per-client targeted responses
Apache License 2.0
1.37k stars 191 forks source link

No geo provider configured #120

Open praveenkumar2608 opened 3 years ago

praveenkumar2608 commented 3 years ago

Hi,

I am trying to configure GeoDNS. I have build the geoDNS from source and downloaded GeoLite2.mmdb databases under '/usr/share/GeoIP/', I have specified the same directory under geodns.conf.

When I run the server with -checkconfig=true, I am getting my zone does not configure with Geo Provider. I have set targets in my zone file.

Please let me know what could be the problem and also verify my zone config and let me know will this configuration works?

{ "serial": 108, "ttl": 30, "max_hosts": 2, "logging": {}, "targeting": "country continent @ regiongroup region ip asn", "contact": "accl@praveentest.com", "data": { "": { "ns": { "ns1.praveentest.com.": null, "ns2.praveentest.com.": null }, "mx": [ { "preference": 20, "mx": "mx2.praveentest.com.", "weight": 0 }, { "preference": 10, "mx": "mx.praveentest.com.", "weight": 1 } ] }, "insouth-test": { "a": [ [ "1.1.1.10", 10 ], [ "1.1.1.43", 10 ] ] }, "innorth-test": { "a": [ [ "1.1.1.46", 10 ], [ "1.1.1.210", 10 ] ] }, "uswest-test": { "a": [ [ “2.2.2.213", 10 ], [ “3.3.3.217", 10 ] ] }, "accl": { "cname": "download.praveen.com.", "ttl": 30 }, "accl.tamilnadu": { "cname": "insouth-test.praveentest.com.", "ttl": 30
}, "accl.karnataka": { "cname": "insouth-test.praveentest.com.", "ttl": 30 }, "accl.maharashtra": { "cname": "innorth-test.praveentest.com.", "ttl": 30 }, "accl.us-west": { "cname": "uswest-test.praveentest.com.", "ttl": 30 } } } }

@abh @kisielk

abh commented 3 years ago

What do the logs say?

praveenkumar2608 commented 3 years ago

@abh Thanks for your quick reply. It was permission issue for the .mmdb files. Now this is working like a charm. One other problem I could see is the chained CNAME is not resolving to the IP address.

Also, say for an example if I a CNAME which I want to associate to multiple regions like (IN-TN, IN-KA, IN_AP, IN-KL), I couldn't find the option. I have to create individual CNAME for each region like mentioned below. Is there a way to change the associate a cname to a list of regions.

"accl.tamilnadu": { "cname": "insouth-test.praveentest.com.", "ttl": 30 }, "accl.karnataka": { "cname": "insouth-test.praveentest.com.", "ttl": 30 },