News for hackers. Stuff that matters.
Re:DNS LOC Record (2014) by stego-tech on Saturday November 29, 2025 @09:43AM (#46087919)
…getting a homelab project idea, where I create LOC records for devices without a dynamic IP address so I can figure out where the f*k they are without having to keep a continuous mental map running at all times. Free up some mental bandwidth as it were.

Very, very cool function to have. I wonder how feasible it’d be to dynamically update it using GPS measurements for fleet tracking, given even Cloudflare had to patch in support.

Re:DNS LOC Record (2014) by narmiouh on Saturday November 29, 2025 @12:11PM (#46089087)
I don't know that the accuracy afforded by LOC would be enough to pinpoint objects inside a house, though the optional fields may perhaps be used to provide room/rack location.
Re:DNS LOC Record (2014) by crote on Saturday November 29, 2025 @01:01PM (#46089440)
Lat/lon are in thousandths of a second of arc. If I did my math right, that means the worst-case precision is a hair over 3cm. Altitude is in centimeters, so on a comparable scale.

Looks to me like it is accurate enough to locate even the smallest network-connected devices! Provided someone doesn't invent wifi-connected rice grains, of course.

Re:DNS LOC Record (2014) by koolba on Saturday November 29, 2025 @01:57PM (#46089847)
> Looks to me like it is accurate enough to locate even the smallest network-connected devices!

This should be a standard feature of server cages. The base rack itself could have a GPS receiver and provide the relative location of each rack.

That way when you nudge the rack over a few feet to make room for the foosball table it automatically updates its own physical location.

Re:DNS LOC Record (2014) by narmiouh on Sunday November 30, 2025 @09:08AM (#46096780)
Makes sense, Thanks for the correction
Re:DNS LOC Record (2014) by magicalhippo on Saturday November 29, 2025 @12:17PM (#46089125)
> where I create LOC records for devices without a dynamic IP address so I can figure out where the f*k they are without having to keep a continuous mental map running at all times

Obligatory bash.org quote[1]:

<erno> hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

[1]: https://qdb.lol/quote/5273

Re:DNS LOC Record (2014) by wowczarek on Saturday November 29, 2025 @12:04PM (#46089037)
Even without LOC, there's also TXT. In my work lab (size of a medium DC, tonnes of devices from a variety of vendors) we used formatted TXT records to store things like: rack elevations, host/port for serial access server, switched power outlet info, reservation status, loan / return info and more. With this and cnames for rack numbers/elevations, with simple scripts we could do more than either a free-but-clunky or a decent-but-expensive DC management system could, from CLI, and quicker.
Re:DNS LOC Record (2014) by teddyh on Saturday November 29, 2025 @03:27PM (#46090471)
A reasonable compromise might be to use the HINFO and RP records? The latter even has a reference to a name where a TXT record can be placed with additional information, if necessary.
Re:DNS LOC Record (2014) by kragen on Saturday November 29, 2025 @09:50AM (#46087979)
You could just serve up a text file over HTTP.
Re:DNS LOC Record (2014) by stego-tech on Saturday November 29, 2025 @10:17AM (#46088164)
I could, but I'd rather not enable HTTP on devices that don't need it.

Don't get me wrong, I'm keenly aware there's easier ways to accomplish such a goal, but that's not the point. I have discovered something new and, as a way of practicing multiple other skills at the same time, am musing over homelab projects I could do to put it into practice and cement that knowledge.

It's just like my internal-only emoji DNS resolver: goofy, amusing, and ultimately impractical outside of the homelab, but still a great way to learn several new things together.

Re:DNS LOC Record (2014) by kragen on Saturday November 29, 2025 @11:07AM (#46088578)
Oh, well, writing your own dynamic DNS system is certainly a great learning project.
Re:DNS LOC Record (2014) by habbekrats on Saturday November 29, 2025 @11:05AM (#46088563)
you could run ur own resolver somewhere and have ur devices update that? i think dns updates are a bit 'slow' sometimes so unsure how much u'd need to update them. if its frequent id say ur own dns resolver would be fastest as ur control the records directly on the box u query
Re:DNS LOC Record (2014) by hughw on Saturday November 29, 2025 @10:02AM (#46088048)
buzzkill
Re:DNS LOC Record (2014) by shellpipe on Saturday November 29, 2025 @03:16PM (#46090393)
Haha. Great idea, I might try this one.