News for hackers. Stuff that matters.
Re:Testing if a port can be reached, using built-in tools ot... by amelius on Sunday October 08, 2023 @05:57AM (#37809181)
Well, frankly I don't care how the ports are implemented, by numbers would be fine. As long as it means that from the user's point of view they are names. A config file like /etc/services is too simple because I create ports all the time, even from scripts, and I don't want to always become root to change the config; and other systems that want to connect to ports on my machine can't read /etc/services on my machine.
Re:Testing if a port can be reached, using built-in tools ot... by lelanthran on Sunday October 08, 2023 @07:27AM (#37809591)
If you want to do a lookup translation and only use names on your local machine, it's only an hour of work or so to create a program that modifies the services file, and then make that program setuid root.

However it only works on your machine.

If you want to have it work on your local machine, DNS SRV records on your local network would work.

The proposal to use names and not numbers breaks down when you want the rest of the world to follow suit, because it's not technically possible within IP, only on top of IP.

Re:Testing if a port can be reached, using built-in tools ot... by amelius on Sunday October 08, 2023 @08:48AM (#37809986)
> The proposal to use names and not numbers breaks down when you want the rest of the world to follow suit, because it's not technically possible within IP, only on top of IP.

This is exactly my point.

Re:Testing if a port can be reached, using built-in tools ot... by lelanthran on Sunday October 08, 2023 @12:24PM (#37811852)
> > The proposal to use names and not numbers breaks down when you want the rest of the world to follow suit, because it's not technically possible within IP, only on top of IP.

> This is exactly my point.

In which case, refer to my original response to your proposal - it's not practical to slow down every networking device in the world by a large factor.

It's like asking "why aren't we commuting at 1/3 the speed of light?": it's neither feasible nor practical.

Sure, it's possible, in that the physics involved make it possible, but not practical, because the limiting factor is not the physics involved.

Re:Testing if a port can be reached, using built-in tools ot... by amelius on Monday October 09, 2023 @05:16AM (#37818517)
Surely we can build some protocol on top of IP. I see people mention SRV records. These seem useful, however not very user-friendly at this point, so people don't use them.
Re:Testing if a port can be reached, using built-in tools ot... by k0k0 on Sunday October 08, 2023 @08:08AM (#37809764)
DNS has SRV records. That is all you need, that is your solution, it exists. That they are not widely adopted in the manner you propose may be unfortunate, but completely upending protocols doesn't seem like a better or more realistically adopted solution either.