Live data from Hacker News

So You Want to Define a Well-Known URI

mnot.net

91–100 of 105 posts

Re: So You Want to Define a Well-Known URI

#91
I do think it is important to have autonomous discoverability with domain-anchored trust, whether through .well-known or DNS records or DNS over HTTP. It looks like cloudflare has already added a bunch of observability into their products around this area, and I am investigating too [1]. It seems like the number of services needing these, and the amount needed per org should both go up with more agentic use cases.

I believe auth.md is also a recent example that uses .well-known

[1] https://instagrate-me.sudoscience.dev/

Re: So You Want to Define a Well-Known URI

#92
post #84

Earlier quoted context omitted.

- registrars control NS records, however these can be changed - NS records control other records - registrars can also use their own nameservers to manage your DNS

Yeah, so basically it’s fine as long as your registrar lets you set your own NS. Are there ones where you can’t do that?

apparently, networksolutions https://news.ycombinator.com/item?id=39673213

Re: So You Want to Define a Well-Known URI

#93

No, in fact I don't. But this post wouldn't be of any help anyway. It feels like it's about nothing, there is no substance, just stating some obvious facts. Without examples that lead to some real recommendations, this whole expertise claimed by the author is of no use.

That's harsh. I believe the author really does get questions from people who want to register a well known path, and probably some of them really failed to consider sites with ~user paths or whathaveyou and this post might push them to use a better solution.

And if you read that and still feel confident that you want a well known url, he links you to the registration process.

Re: So You Want to Define a Well-Known URI

#94

.well-known started tidy and quietly became the junk drawer of the web root. security.txt, ACME, app-site-association, and counting.

What do you mean? It was explicitly designed to be a junk drawer.

Fair, the drawer's the good part. Beats having every spec squat its own root path.

Re: So You Want to Define a Well-Known URI

#95
post #67

Earlier quoted context omitted.

Also, DNS-PERSIST-01 seems to be coming soon for Let's Encrypt, which should allow even people that can't easily dynamically update their DNS records to get wildcard certs. I assume this might become more widely used than HTTP-01 challenges.

I wish someone would write a blog post about the difference between DNS registrars and DNS hosts, because I've seen people assume they need to use a registrar that has an API in order to change their DNS records programmatically. I used to assume that too.

I agree that it can be confusing. I use RFC 2136 DNS UPDATE with my own DNS server. But for example, for my workplace this new challenge is convenient as they refuse to want to run their own DNS server.

Re: So You Want to Define a Well-Known URI

#96

"This Web site requires a more modern browser to operate securely; please upgrade your browser." Alternative, no SNI required https://web.archive.org/web/20260619061625if_/https://mnot.n...

If one is conducting surveillance and/or censorship of www users, SNI is not good

It's great

Re: So You Want to Define a Well-Known URI

#97
post #68

Earlier quoted context omitted.

The better pattern is to use an underscore prefix like _discord-verification.domain.com If your site allows user-created subdomains it shouldn't allow leading underscore. This is reserved somehow.

Why would you want a new prefix over using record types as they were meant to be used?

Because:

1. Practically, the process for creating a new DNS record type is bureaucratic and slow.

2. New record types have a limited number, but names are unlimited as long as they are unique.

3. If the data you’re storing is perfectly compatible with an existing record type, like TXT, it seems silly to overload semantics into a new, but otherwise identical, record type. You can compare record types to variable types in a programming language. I.e. instead of having

  name_t x = "foo";             /* C */
  x: Name = "foo"               # Python
  x       IN      NAME    "foo" ; DNS
you instead have:

  char *name = "foo";           /* C */
  name: str = "foo"             # Python
  _name   IN      TXT     "foo" ; DNS
Sure, DNS might not have integer types, but it has host names (PTR), IP addresses (AAAA and A), and strings (TXT, which also can work as an array of strings up to 255 bytes in length if you prefer). These, with added semantics of an underscored name prefixed, will get you quite far without having to invent a new record type to contain your specific semantic meaning to, say, a plain TXT record.

Re: So You Want to Define a Well-Known URI

#98
post #68
post #45

Earlier quoted context omitted.

Having all those TXT records at the domain apex like that makes the TXT query reply huge , which affects, for instance, every mail recipient who merely wants to check the SPF record. This is a bad pattern to follow.

The better pattern is to use an underscore prefix like _discord-verification.domain.com If your site allows user-created subdomains it shouldn't allow leading underscore. This is reserved somehow.

Underscores are not “reserved somehow”. Underscores are simply not allowed in “host names”; i.e. names with either AAAA or A records, or where the record data has a host name target, like CNAME, MX, SRV, SVCB, or HTTPS records (or any similar record types containing host names).

Re: So You Want to Define a Well-Known URI

#99

Earlier quoted context omitted.

The point of the post was that you need to add robots.txt (or similar) because it's a thing, and also tell us where they are.

> add a robots.txt Which bots will then ignore.

I didn't expect I'd get to use this so soon. Obligatory canned advisory:

https://www.felesatra.moe/blog/2026/06/19/robots

Re: So You Want to Define a Well-Known URI

#100
post #68

Earlier quoted context omitted.

The better pattern is to use an underscore prefix like _discord-verification.domain.com If your site allows user-created subdomains it shouldn't allow leading underscore. This is reserved somehow.

Why would you want a new prefix over using record types as they were meant to be used?

because IANA won't allocate a number for discord domain verification
Post reply on HN