Live data from Hacker News

DNSGlobe – Rust TUI to watch DNS propagate around the world

github.com

41–50 of 74 posts

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#42
post #38

Earlier quoted context omitted.

Ehh do you remember the defaults back in the day? And how long local vs intermediary vs backbone TTLs could be cached for, even above and beyond the set TTL? The propagation part refers to how long it would take for all those cached requests to expire and when you could tell some random client they should be able to see the new value. Especially when you forgot to lower the TTL ahead of time. It’s a term of art and i…

> local vs intermediary vs backbone TTLs This is an example of the myth in action. There are no such things. There is a single resolver, which you use, and a set of authoritative server, which that resolver will query when the TTL in the resolver’s cache times out. There is no chain of resolvers.

What do you call it when an application queries systemd-resolved and systemd-resolved queries PiHole and PiHole queries your home router and your home router queries your ISP? What is that if not a chain?

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#43

Vibe-coded. Sorry. https://github.com/514-labs/dnsglobe/blob/c29802162636832e88... You take the `other`, do a `to_string()` on it, which creates a String representation. Then you pass a reference to that String, and, in the case it doesn't contain `time out` or `timeout` or `refused`, the reference gets turned AGAIN into a String (i.e. new allocation), truncated to 48, and then returned. There is no check whether tha…

It's gotten to the point that the moment I see "Rust" and "TUI" together, I immediately assume it's vibe coded. The combination just seems to be vibe coders' favorite, for some reason.

It must be because if you program in Rust, you don't have bugs ;)

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#44

Vibe-coded. Sorry. https://github.com/514-labs/dnsglobe/blob/c29802162636832e88... You take the `other`, do a `to_string()` on it, which creates a String representation. Then you pass a reference to that String, and, in the case it doesn't contain `time out` or `timeout` or `refused`, the reference gets turned AGAIN into a String (i.e. new allocation), truncated to 48, and then returned. There is no check whether tha…

The very first thing written about this tool is the programming language it's written in.

Like, when I'm querying a bunch of DNS servers, it is crucial for me to know which compilable language it was written in. Like, the most important thing.

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#45
post #2

The myth of DNS “propagation” needs to die. Changed DNS entries do not “propagate”. The old cached DNS entries in DNS resolvers simply expire, in an arbitrary order. DNS resolvers are not linked geographically; there is no “propagation”. If this tool was querying a list of widely-used public (and/or private) DNS resolvers, it might be useful. But pretending that DNS entries propagate geographically does not do anyone…

> The old cached DNS entries in DNS resolvers simply expire, in an arbitrary order.

I really wish that was so. There's lots of weird resolvers out there used by weird ISPs that don't properly respect the TTL value. Setting TTL to some really low number a full day before making a major change is no guarantee that your zone will expire in a bunch of places. All kinds of weird ISPs try to do things with the dns results they present to their customers.

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#46
post #10

Earlier quoted context omitted.

a) different DNS systems get the change out to all the authoritatives different ways. Some of them with much delay. Delays are hopefully minimal on modern systems, but I've worked with bad systems where you change dns in the api and it takes minutes and sometimes hours for the authoritatives to start returning new results; traditional notify/axfr based systems often have a queue of several seconds at least. b) as res…

> Delays are hopefully minimal on modern systems The delays are almost always self inflicted by people who've blindly put 36400 in the TTL field like some sort of magic charm rather than considering how long they want the cache expiry to be. Long ago I was one of them and then I had the company greybeard point out that DNS record updates are a thing we had control over - just drop the TTL to 30 seconds or whatever a…

djbdns/tinydns can schedule a change and give out a lower and lower TTL the nearer the changeover time gets - a quick search doesn't show any newer implementations but this is surely a good way to do it.

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#47
post #39

Earlier quoted context omitted.

Nothing wrong with vibecoding a toy project.

There is if you present it to others without telling anyone it’s slop.

For some vague reason you can't really articulate, that's a bad thing?

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#49

What's with the rust community and terminals? I get that gui's are tedious in those languages, but surely you don't have to write everything in rust? Or has rust become the be-all-and-end-all for them?

You can do GUI/web easily enough in Rust, but as this is DNS and so most users will be network/sysadmin types, their natural habitat is the terminal.

Rust is taking over from C/C++ (as per US Government guidance on using more secure languages) and so is attracting the most hardcore programmers.

Libraries for everything: https://crates.io

p.s. stop being so grumpy!

Re: DNSGlobe – Rust TUI to watch DNS propagate around the world

#50
post #49

What's with the rust community and terminals? I get that gui's are tedious in those languages, but surely you don't have to write everything in rust? Or has rust become the be-all-and-end-all for them?

You can do GUI/web easily enough in Rust, but as this is DNS and so most users will be network/sysadmin types, their natural habitat is the terminal. Rust is taking over from C/C++ (as per US Government guidance on using more secure languages) and so is attracting the most hardcore programmers. Libraries for everything: https://crates.io p.s. stop being so grumpy!

> most hardcore programmers

> Vibe-coded

LOL.

LMAO.

Post reply on HN