News for hackers. Stuff that matters.
Re:DNS-over-HTTPS by joshAg on Thursday September 29, 2016 @11:12PM (#12610335)
Why can't you just send DNS messages over an SSL/TLS socket? What's the value add for http and REST?
Re:DNS-over-HTTPS by LukeShu on Thursday September 29, 2016 @11:26PM (#12610375)
I would assume being able to reuse the connection for multiple requests. Setting up the TLS connection is quite a bit more expensive than raw TCP, and especially UDP (most DNS happens over UDP). For longer connections, the additional overhead is minor, but for the extremely short DNS messages, I would imagine that a TLS connection per DNS request would be some pretty substantial overhead.

Edit: The page mentions that this allows web applications to make their own DNS requests, possibly looking up things other than A/AAAA records that the browser normally requests.

Re:DNS-over-HTTPS by eggnet on Friday September 30, 2016 @12:02AM (#12610464)
http and rest are not the only ways to reuse a socket. You could just write the packet to the TLS stream, raw, and keep the socket open.
Re:DNS-over-HTTPS by LukeShu on Friday September 30, 2016 @12:16AM (#12610491)
Definitely. But then you need to define an envelope to mark where an individual message begins and ends (with UDP DNS, it's a single datagram; with TCP DNS, it's the entirety of the transmission). There are infinite ways to do this, and countless many already specified in various standards (many of which are already implemented in browsers, which is surely the the primary application Google had in mind). HTTP provides one such envelope.
Re:DNS-over-HTTPS by pprx on Friday September 30, 2016 @01:58AM (#12610728)
> with TCP DNS, it's the entirety of the transmission

DNS Messages have a two-byte length prefix when transmitted over TCP. Multiple envelopes can and often are sent over a single circuit.

Re:DNS-over-HTTPS by joshAg on Friday September 30, 2016 @09:08PM (#12616115)
that's what ssl tickets are there for.

heck you can even do that over udp with dtls, if you don't want to deal with setting up and tearing down tcp connections.

Re:DNS-over-HTTPS by comex on Friday September 30, 2016 @12:42AM (#12610553)
Web applications can't initiate raw TLS connections.
Re:DNS-over-HTTPS by peburrows on Friday September 30, 2016 @02:00AM (#12610734)
That's not true. Sure, many languages require you to drop down to a lower-level API to create a vanilla TCP connection, but if the language you're using doesn't provide a way to open a TCP socket and do the TLS negotiation dance, then you've probably chosen the wrong language.
Re:DNS-over-HTTPS by mort96 on Friday September 30, 2016 @03:05AM (#12610902)
The language is entirely uninteresting; what's interesting is what the runtime allows you to do. Browsers purposefully don't allow you to create raw TCP connections, yet JavaScript can in many other contexts (e.g node.js) create raw sockets perfectly fine.
Re:DNS-over-HTTPS by kuschku on Friday September 30, 2016 @05:08AM (#12611322)
> Browsers purposefully don't allow you to create raw TCP connections

Which is ridiculous, as it literally brings zero advantage to restrict that.

Re:DNS-over-HTTPS by lorenzhs on Friday September 30, 2016 @06:53AM (#12611674)
Well I think it's a good idea to prevent web pages from just opening up a socket to some server, speaking whatever protocol they like. It could be easily abused to spam, etc.

There is, however, https://www.w3.org/TR/tcp-udp-sockets/ - see section 10 for an example.

Re:DNS-over-HTTPS by kuschku on Friday September 30, 2016 @08:18AM (#12611989)
Considering the move proposed in this thread to move even SMTP to HTTP, how would preventing connecting to SMTP prevent spam when one can still POST to SMTP-over-HTTP?
Re:DNS-over-HTTPS by paulddraper on Friday September 30, 2016 @11:13AM (#12612932)
"We need to restrict this to prevent abuse."

-- time passes --

"We need to change everything in order to accomplish a task under these restrictons."

Re:DNS-over-HTTPS by sneak on Friday September 30, 2016 @02:02AM (#12610738)
Then all billion of us on the web have "chose[n] the wrong language".
Re:DNS-over-HTTPS by regularfry on Friday September 30, 2016 @02:36AM (#12610824)
This is painfully accurate.
Re:DNS-over-HTTPS by nilved on Friday September 30, 2016 @09:58AM (#12612441)
Indeed, it's quite unfortunate
Re:DNS-over-HTTPS by paulddraper on Friday September 30, 2016 @01:13AM (#12610623)
Because HTTP is the new narrow waist of the internet.
Re:DNS-over-HTTPS by ddalex on Friday September 30, 2016 @06:14AM (#12611548)
Because Google thinks by default in terms of HTTP and browsers, and can't think that not everything is on Web.
Re:DNS-over-HTTPS by acdha on Friday September 30, 2016 @11:21AM (#12612985)
Given how successful they've been at that, I'm curious why you seem to view that as an aspersion on them rather than something to learn from? Shouldn't that tell us something about deploying internet-scale services?

(and, to be clear, the answer is yes, namely that a custom protocol has to deliver a lot of value to make up for having to deal with the deployment headaches inherent to anything less supported by firewalls, NAT boxes, etc. than HTTP/HTTPS)

Re:DNS-over-HTTPS by mseebach on Friday September 30, 2016 @04:57AM (#12611286)
It's an API that returns a document. Nothing fancy, no bells and whistles. If, for literally anything else, someone had suggested building such a service using raw sockets, they'd rightly be laughed out of the building.

Twilio isn't implemented using AT commands either, and for the same reason.

Re:DNS-over-HTTPS by chris_wot on Friday September 30, 2016 @06:10AM (#12611528)
What, resolving using a socket is now considered ridiculous?
Re:DNS-over-HTTPS by nothrabannosir on Friday September 30, 2016 @07:30AM (#12611818)
The comparison with Twilio is unfair.

DNS latency is an entire round trip added to every single fresh domain lookup you make. That's a lot of times, and we want those to be as fast as possible. At that point, the raw sockets vs full blown HTTP over TLS over TCP debate matters.

Twilio, on the other hand, is used in situations with comparably laughable latency requirements. At least two orders of magnitude.

Not saying it's doa, but the question has merit.

Re:DNS-over-HTTPS by hrjet on Friday September 30, 2016 @01:15AM (#12610630)
Corporate proxies / firewalls.