If we focus on the functional usage and not the technical implementation, I think the analogy could be more that domain names are like phone numbers and IP addresses are like DTMF tones, but even that is imperfect.
I challenge this assertion. The white pages are exactly what DNS is - you rent a phone number and the association of your name to that phone number (in the phone book).
But I do acknowledge what you’re saying and where you’re coming from. Maybe I’d chalk this up to “most analogies anre imperfect.”
Street addresses is the human readable form that translate into a position. They are as close to domain names as you can get in an real world analogy.
Yellow pages are the equivalent of paying Google Ads to advertise your product.
If prostitutes in the Netherland are paying French news papers in France to advertise prostitution, then the correct response is to stop the French news papers. Destroying maps of the Netherland, or closing the border to the Netherland would both be massive overreaction and would harm the diplomatic relationship between the countries. The Internet analogies of those are DNS blocks, or the use of a national firewall.
I guess it also depend a bit on how one want to look at it. A physical location will have their lat/lon coordinate change very slowly as continents slowly moves. Nothing in this world is truly ever static.
White pages are like an IP address. Yellow pages are more like a purchased domain name.
So let’s say in the Netherlands where prostitution is legal, there are a bunch of yellow pages ads for prostitutes. Should France have to allow those yellow page ads in France where prostitution is illegal?