Comments (3)
I think you can do either:
{
subdomains.foo.A = [ (a "1.1.1.1" // { ttl = 50; }) ];
}
or
{
subdomains.foo.A = [ (ttl 60 (a "1.1.1.1")) ];
}
I think it would also help if the ttl
combinator could work recursively so that you could apply it to an entire zone/subzone.
Regarding creating simple subdomain hosts, I completely agree that itโs annoying, however I donโt know how to make it better in an unambiguous way. I was thinking about building yet another higher-level DSL on top of this one, that would be ambiguous but would allow for easier hosts definitions.
from dns.nix.
Your ttl function would mean, I would have to specify A and AAAA records separately. My idea was to create a shorthand function for this.
from dns.nix.
Is there anything that goes against specifying a default TTL, and then editing it on a case on case basis?
EDIT: I stand corrected, there is a $TTL
. Sorry! But for subdomains it would be nice as well :)
from dns.nix.
Related Issues (13)
- writeZone does not work when importing as flake HOT 4
- Expose defaults.ttl as an option HOT 1
- Long DKIM Keys (or other long TXT record) lead to syntax error in bind9 HOT 1
- Have some tests HOT 1
- Support for unqualified domain names
- Use of `dns.nix` triggers infinite recursion HOT 5
- Is there a way to import this module to have it available in all imported files? HOT 3
- Provide more detailed examples
- Difficult to use ACME/Let's Encrypt with dns.nix HOT 8
- "error: cannot coerce a set to a string" when eval lib.types HOT 3
- DMARC: add support for external destination verification
- Maintenance status HOT 3
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 dns.nix.