logoalt Hacker News

UltraSanetoday at 3:41 AM3 repliesview on HN

The socket interface using IP addresses instead of DNS names is widely considered to be a major mistake.


Replies

asveikautoday at 4:19 AM

I disagree with this. Separating lookup from connect(2) or sendmsg(2) is cleaner. If an application doesn't care about the difference, most people are using higher level APIs built on top anyway, and most of those will provide a quick way to hide DNS details from you.

show 1 reply
drdexebtjltoday at 5:32 AM

Absolutely not.

You can have sockets without DNS. You can pick whatever strategy you want when there are multiple A records. You can use SRV records instead. And most importantly imo, it mirrors the listening API.

lelanthrantoday at 4:38 AM

By who? I haven't seen this argument before.

show 1 reply