Live data from Hacker News

Bunny DNS – A scriptable DNS platform

bunny.net

61–70 of 90 posts

Re: Bunny DNS – A scriptable DNS platform

#61

Earlier quoted context omitted.

I know that we all have our preferences of langauges, but is Javascript in 2022 actually any worse than anything else as a scripting language? What would you prefer instead?

That's of course purely anecdotal, but recently I explored static site generators. One of these was Hugo(written in go, which is pretty young ecosystem, I'm not very familiar with). Everything was pretty straight forward. Other one was Gatsby v4 (seems like pretty mature JS project). Oh boy. Docs suggest multiple ways to initialize new project, depending which page you open and without clear explanation of the differ…

It comes down to a combination of factors, but the long and short of things when it comes to content-focused sites specifically is that companies want all of:

- A modern user experience with rich content - Authoring tools which are easy for non-technical users to understand - Fast content delivery times - Low operational costs

The problem is that getting all of them at once requires a bunch of fiddly integration problems. These problems are compounded if you throw e-commerce into the mix as well, in which case your marketing department is gonna want all kinds of analytics to try and suss out what users are doing, when, and why.

So, a lot of the weirdness and complexity has to do with making projects adaptable enough to handle a variety of different use cases while still offering at least a little bit of lift (vs. rolling the entire thing oneself).

Re: Bunny DNS – A scriptable DNS platform

#62

Somewhat related (and shameless plug), I coded a Lua-scriptable (Javascript planned) DNS server a while ago[0]. I'm using it in a few low traffic domains, but the code needs some additional love :-) [0] https://github.com/luismedel/redns

I've been looking for something like this within my internal network.. I want scrip-table control over DNS.. but I run all Linux/Bsd's and this looks to be .NET are the instructions on running in Linux and/or Docker containers?

Re: Bunny DNS – A scriptable DNS platform

#63

Earlier quoted context omitted.

I know that we all have our preferences of langauges, but is Javascript in 2022 actually any worse than anything else as a scripting language? What would you prefer instead?

That's of course purely anecdotal, but recently I explored static site generators. One of these was Hugo(written in go, which is pretty young ecosystem, I'm not very familiar with). Everything was pretty straight forward. Other one was Gatsby v4 (seems like pretty mature JS project). Oh boy. Docs suggest multiple ways to initialize new project, depending which page you open and without clear explanation of the differ…

Fair enough. I do agree that JS-based libraries, frameworks, and tools tend to have bad docs and questionable API designs, compared to equivalents that I've used in other languages. There is some cultural issue there that I don't understand.

But... this is an embedded scripting environment! You aren't using any of that stuff.

Re: Bunny DNS – A scriptable DNS platform

#65

I've been following Bunny (BunnyCDN/Bunny.net) for a while and love what they are doing. Couple of suggestions: • Every code snippet should be copy/pasteable (and work well), that article might be the entry point to what many are doing. • I have this feeling this is following Cloudflare's Workers style of `addEventListener('fetch', eventHandler);`. I need to write a 500-word essay on that, but the short version is th…

[deleted]

Re: Bunny DNS – A scriptable DNS platform

#67
post #9

I have some idea about how DNS and internet routing works but I can't think of a usecase for this.

I can think of use cases with existing solutions that could migrate to something like this, but not any really novel use cases. Put your health checks in your DNS server rather than issuing nsupdate requests from a monitoring system. Use this to do GeoDNS dynamically in the DNS server rather than using anycast and giving out different records at different authoritative DNS servers. Check the netblock or ASN-1 of someone connecting and direct traffic from specific networks to different host records. Automatically adjust your TTL upward when you're getting a lot of DNS traffic for a particular record. Adjust it down when adding new A records to a particular name. Have fine-grained control over logging for just certain requests. Automatically have SPF and DKIM updated when adding records to a particular subzone.

Re: Bunny DNS – A scriptable DNS platform

#69

Oh ffs, why does TFA refer to this as "internet routing"?? This is HTTP routing, or "web routing" if you want, but "internet routing" is something else entirely -- think BGP and OSPF. Is this a thing now, to refer to HTTP routing as "internet routing"?

Since when is DNS used exclusively for HTTP?

Re: Bunny DNS – A scriptable DNS platform

#70

Oh ffs, why does TFA refer to this as "internet routing"?? This is HTTP routing, or "web routing" if you want, but "internet routing" is something else entirely -- think BGP and OSPF. Is this a thing now, to refer to HTTP routing as "internet routing"?

Can you explain why would DNS be limited to Web ?
Post reply on HN