Live data from Hacker News

Bunny DNS – A scriptable DNS platform

bunny.net

11–20 of 90 posts

Re: Bunny DNS – A scriptable DNS platform

#11
post #7

Like the idea. But… 1) Claim privacy first and then have a cookie banner. 2) Say “routing” when you mean location/IP based DNS. 3) Is that a loosely typed language in the scripting engine? Not sure I would want DNS queries to be relying on that. I am sure there is still some innovation left in DNS. SDDNS I’d call it: Software defined DNS. Especially with the splinternet we are walking into these days. Just don’t thin…

The application being privacy focused and the marketing site using normal marketing optimization techniques are different things.

Re: Bunny DNS – A scriptable DNS platform

#13
post #7

Like the idea. But… 1) Claim privacy first and then have a cookie banner. 2) Say “routing” when you mean location/IP based DNS. 3) Is that a loosely typed language in the scripting engine? Not sure I would want DNS queries to be relying on that. I am sure there is still some innovation left in DNS. SDDNS I’d call it: Software defined DNS. Especially with the splinternet we are walking into these days. Just don’t thin…

Cookies as tech say nothing about privacy. If you want to store information that you refuse to share your private data - that almost certainly is getting stored in a cookie. You can route connections on different layers than IP routing. We commonly talk about http request routing as in dispatch based on the domain/path. I'm happy with "routing" as in directing traffic via DNS resolution. I doubt anyone here is confus…

They store a FB cookie and they store it before user accepts the cookie banner.

Re: Bunny DNS – A scriptable DNS platform

#14

Earlier quoted context omitted.

Cookies as tech say nothing about privacy. If you want to store information that you refuse to share your private data - that almost certainly is getting stored in a cookie. You can route connections on different layers than IP routing. We commonly talk about http request routing as in dispatch based on the domain/path. I'm happy with "routing" as in directing traffic via DNS resolution. I doubt anyone here is confus…

They store a FB cookie and they store it before user accepts the cookie banner.

Sure, that's not very privacy-friendly, but that's a different claim than what OP wrote.

Re: Bunny DNS – A scriptable DNS platform

#15
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 that I strongly believe that it'd be way better for their clients if the client could just do `export default async function handleDns(event) { ... }` instead of having a global (what?) context where there's a function unattached called `addEventListener` and you need to know it's for `"dns"` (is there even other possibility here?) and that the respondWith() only accepts a promise, which is not common (it's more common to accept an async fn which then becomes a promise). Compare these two snippets, current and with my small proposal:

    // Current API:
    addEventListener('dns', event => {
      event.respondWith(handleRequest(event.request));
    });

    function handleRequest(request) {
      return new TxtRecord('Hello world!, 30);
    }

    vs

    // Potential/suggested API:
    export default function handleDns(event) {
      return new TxtRecord('Hello world!, 30);
    }
This way it's easier to write, to reason about, to test, etc. It's all advantages from the client point of view, and I understand it's slightly more code from Bunny's point of view but it could be done fairly trivially on Bunny's end; they could just wrap the default export with this code on their infra level, simplifying and making dev lives a lot easier:

    // Wrapper.js
    import handler from './user-fn.js';

    addEventListener('dns', event => {
      if (typeof handler === 'function') {
        event.respondWith(handler(event));
      } else {
        // Could support other basic types here, like
        // exporting a plain TxtRecord('Hello', 30);
        throw new Error('Only handler functions supported now');
      }
    });

Re: Bunny DNS – A scriptable DNS platform

#16

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

#18
post #11
post #7

Like the idea. But… 1) Claim privacy first and then have a cookie banner. 2) Say “routing” when you mean location/IP based DNS. 3) Is that a loosely typed language in the scripting engine? Not sure I would want DNS queries to be relying on that. I am sure there is still some innovation left in DNS. SDDNS I’d call it: Software defined DNS. Especially with the splinternet we are walking into these days. Just don’t thin…

The application being privacy focused and the marketing site using normal marketing optimization techniques are different things.

On the other hand, it's usually best to lead by example and "put your money where your mouth is".

Re: Bunny DNS – A scriptable DNS platform

#19
post #7

Like the idea. But… 1) Claim privacy first and then have a cookie banner. 2) Say “routing” when you mean location/IP based DNS. 3) Is that a loosely typed language in the scripting engine? Not sure I would want DNS queries to be relying on that. I am sure there is still some innovation left in DNS. SDDNS I’d call it: Software defined DNS. Especially with the splinternet we are walking into these days. Just don’t thin…

Cookies as tech say nothing about privacy. If you want to store information that you refuse to share your private data - that almost certainly is getting stored in a cookie. You can route connections on different layers than IP routing. We commonly talk about http request routing as in dispatch based on the domain/path. I'm happy with "routing" as in directing traffic via DNS resolution. I doubt anyone here is confus…

> Cookies as tech say nothing about privacy.

But cookie banners do. Essential cookies that are required e.g. to store login data no not require a cookie banner (https://github.blog/2020-12-17-no-cookie-for-you/). So if there is a cookie banner you can assume that the site wants to store analytics, tracking or advertising cookies.

Re: Bunny DNS – A scriptable DNS platform

#20
post #12
post #2

It always puzzles me when people speak of "routing" in conjunction with DNS.

People also speak of routing with respect to web applications and woodworking.

In woodworking, that's a different word. In "english" English, the woodworking word is prononced "raowting", as in "now" or "about"; the business of choosing a route is pronounced "rooting", as in "boot".

In American English, "route" and "about" have the same vowel-sound, which seems unfortunate; I wonder how that happened.

English is a mess, but I hope we don't try to fix it!

Post reply on HN