Comments (6)
Zones and records already have a field for storing locations. The tinydns exports will include the location information in the exports.
from nictool.
The Location field is now exposed in NicTool Client.
from nictool.
Is this feature supported on BIND DNS exports?
from nictool.
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.
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.
Knot also has GeoIP location support.
from nictool.
Related Issues (20)
- NicToolServer::Import::tinydns MX and SRV issues HOT 3
- Support LUA Records HOT 1
- Allow PTR in "forward" zones to support DNS-SD (RFC 6763) HOT 1
- Problems with an upgrade HOT 1
- Only 10 nameserver offered for new zones HOT 1
- Importer and UI reports false duplicates HOT 2
- CNAME import fails when aborted import is started again
- CNAME validation does not catch CNAME for the zone name HOT 6
- Importer can not import zone files with $origin and $ttl HOT 4
- Updating the Makefile.PL with MariaDB HOT 5
- NicTool v3 Working Plan Outline
- Data store is a document database
- Federated Identity support (SSO, SAML, OAuth, OpenID)
- build error
- Please add howto setup NicTool with nginx to your documentation HOT 2
- CAA records: make it a little more difficult to generate zone file syntax error
- Support TLSA records HOT 1
- SOAP response with wrong type of data
- delegation permissions only use the first one on the list
- insecure session_id generation, users logging in at the same second get the same id HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nictool.