Git Product home page Git Product logo

Comments (6)

msimerson avatar msimerson commented on May 27, 2024

Zones and records already have a field for storing locations. The tinydns exports will include the location information in the exports.

from nictool.

msimerson avatar msimerson commented on May 27, 2024

The Location field is now exposed in NicTool Client.

from nictool.

paulojrrsantos avatar paulojrrsantos commented on May 27, 2024

Is this feature supported on BIND DNS exports?

from nictool.

adamgoryachev avatar adamgoryachev commented on May 27, 2024

The next step for this would be to allow to create records using locations in the client. Specifically, if you try to add a second record where the only difference is the location, eg:
www.domain.com A 123.123.123.123 location1
www.domain.com A 123.123.123.123 location2

Then you get the error:

Duplicate Resource Records are not allowed: RFC 2181
multiple CNAME records with the same name are NOT allowed. (use plain old round robin)
record test already exists within zone as an (CNAME) record: RFC 1034, 2181, & 4035

From initial checks, it looks like the correct place to "fix" this is server/lib/NicToolServer/Zone/Record/Sanity.pm in _duplicate_record.
From my limited perl skills, I'm thinking something like an extra grep to only include records that have a matching location (even if the location is null).
Or, the other option would be an extra exclusion below to check if the type is one of (whichever records are permitted to have a location, such as A/CNAME at least) and then permit duplicates if the location is different.

I'm happy to try to create a patch, but TBH my perl was never really great, but if someone can provide some hints, then I'd be happy to give it a go, and do some testing.

I'm happy to leave adding locations manually via the Makefile, but the above needs to be fixed, and preferably display the location with view of records so you can easily see why there are duplicates.

from nictool.

msimerson avatar msimerson commented on May 27, 2024

From my limited perl skills, I'm thinking something like an extra grep to only include records that have a matching location (even if the location is null).

Yep, that'd be the correct solution.

preferably display the location with view of records

I'd also be fine with showing the location, but only when the zone contains records with a location.

from nictool.

msimerson avatar msimerson commented on May 27, 2024

Knot also has GeoIP location support.

from nictool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.