Giter Site home page Giter Site logo

provide a hostTTL function about dns.nix HOT 3 OPEN

kloenk avatar kloenk commented on June 20, 2024
provide a hostTTL function

from dns.nix.

Comments (3)

kirelagin avatar kirelagin commented on June 20, 2024

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.

kloenk avatar kloenk commented on June 20, 2024

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.

eyJhb avatar eyJhb commented on June 20, 2024

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)

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.