logoalt Hacker News

thrilltoday at 3:46 PM4 repliesview on HN

Aren’t there several states that have the same city name repeated within the state? I think there’d need to be a county delineator here too.


Replies

TallGuyShorttoday at 3:49 PM

That gets extremely complicated. My town straddles the border between 2 counties. And you can't trivially have subdomains for counties and cities at the same level, because Wyoming has a Laramie city but it's in Albany County, not the neighboring Laramie County.

Did this just inspire the next "Falsehoods programmers believe about... Federalism"?

show 1 reply
DrewADesigntoday at 4:27 PM

The edge cases always make things so difficult:

Manhattan: New York County

Brooklyn: Kings County

The Bronx: Bronx County

Queens: Queens County

Staten Island: Richmond County

All New York City. Same municipality, 5 counties.

show 1 reply
tialaramextoday at 3:54 PM

If you have hierarchical naming, which DNS does, then the problem of name clashes is always a problem for whoever sits above those names and they can resolve it however they like.

If your state thought it was a good idea to have two cities named "Star City" that's on them to resolve however they like. Trial by endurance for the city mayor? Draw lots? Everybody in the state votes? Not my monkeys, not my circus.

runjaketoday at 3:52 PM

You're right, but typically, when two towns in a state share a name, only one is an incorporated city at most. The other, or both, are usually unincorporated communities. Normally, unincorporated communities do not receive a city.state.us locality domain.

show 1 reply