11 ms·
Bizarre and unusual uses of DNS
- pram 4y agoA prior company I worked at had API keys (like AWS) in TXT records that would be used in some bootstrapping. Thats uhh, certainly a convenient place to put them, yeah.
- sunaurus 4y agoWas it at least private DNS?
- teddyh 4y agoIn practice, there’s no such thing as “private” DNS. You can disable zone transfers and type “ANY” queries, but NSEC records of DNSSEC enable name enumeration, and public resolvers record and often publish the queries done through them. Do not put any private information in DNS. It’s not made for it, and many, many systems which work with DNS assume in their design that all DNS data is public.
- ericpauley 4y agoThey may be referring to private resolvers used within a private address range (e.g., https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ho...)
- teddyh 4y agoThe DNS data is still not encrypted over the wire, and clients could use their own local resolver which in turn uses the private resolver. This local resolver will most probably be designed with the assumption that DNS data is public.
- ericpauley 4y agoRoute53 private DNS is resolved over link-local addresses, so whether the responses are encrypted is irrelevant. They're specifically designed for private resolution within a VPC.
- teddyh 4y ago6. The network is secure. — https://en.wikipedia.org/wiki/Fallacies_of_distributed_computing https://en.wikipedia.org/wiki/Fallacies_of_distributed_compu...
- fiddlerwoaroof 4y agoThat’s assuming a generic network
- ericpauley 4y agoLink-local networking in VPC is specifically designed to secure data that is plaintext at the application layer (DNS). It’s effectively communication with the hypervisor, not over some untrusted link. If you don’t buy this, I guess you should start encrypting all your syscalls too?
- capableweb 4y ago> If you don’t buy this, I guess you should start encrypting all your syscalls too? Don't forget to encrypt all .socket's, and maybe encrypt everything over at /dev as well.
- waych 4y agoIf you believe a piece of link local infrastructure is a good carrier to trust your data, I have some great broken switches you may be interested in buying. Or if you insist on it being a virtual stack, how about some DMA engines with transient errors that mix up your packet headers from their payloads? The network is secure is a fallacy.
- HyperSane 4y agoYou could possibly encrypt them.
- bitlax 4y agohttps://news.ycombinator.com/item?id=31704789 https://news.ycombinator.com/item?id=31704789
- woodruffw 4y agoAnother fun one I learned about recently: `e164.arpa` is a reserved domain for E.164 phone number to Internet address lookups[1]: you can query it for NAPTR records, which tell the client how to initiate a call over the Internet (via SIP) instead of over PSTN. [1]: https://www.ietf.org/rfc/rfc2916.txt https://www.ietf.org/rfc/rfc2916.txt
- spc476 4y agoI worked in that space for over a decade. While it's true, the use of E.164 in production was never done (usually, it's some subdomain from the Oligarchic Cell Phone companies). Second, it's never free. Nothing on the telephony network is free. Third, you get back data that includes a regex on how to transform the other data into something you can use---very convoluted.
- ehPReth 4y agoToo bad; this would be really cool to 'own' your E.164 domain in some cases
- indigodaddy 4y agoe164.arpa was never used in production? By whom exactly? Because I can tell you it’s heavily in use currently by many large telecom/voip companies
- spc476 4y agoVerizon for one, at least in the US. I know I used e164.arpa for testing purposes, until new management came in and demanded we use the domain we use in production for testing (because, well, production, I guess? Keep the configs as the same as much as possible?). Now that I've name names (or a name), how about you? Who uses e164.arpa?
- indigodaddy 4y agoVoxeo/Aspect/Alvaria
- nighthawk454 4y agoReminded me of Corey Quinn's "Route53 as a database" https://www.lastweekinaws.com/blog/route-53-amazons-premier-database/ https://www.lastweekinaws.com/blog/route-53-amazons-premier-...
- spenczar5 4y agoThat is given a slide in the talk, yep.
- exabrial 4y agoSadly, we can't have browsers that use SRV records.
- teddyh 4y agoHTTPS records are (reportedly) coming soon™: https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https/ https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https... TL;DR: HTTPS records are like SRV records without the weight number (but, crucially, including the priority number), and with some extra stuff to make the TLS handshake happier.
- exabrial 4y agonice! thanks for the link, that gives me hope
- d110af5ccf 4y agoNote that there are both HTTPS and SVCB record types. Regardless of the standard being finalized there's already some support in the wild. To name a few prominent ones iOS, macOS, Cloudflare, Akamai, and NS1 all support both types. https://github.com/MikeBishop/dns-alt-svc/blob/main/svcb-implementations.md https://github.com/MikeBishop/dns-alt-svc/blob/main/svcb-imp...
- teddyh 4y ago> Note that there are both HTTPS and SVCB record types. Yes, but the topic was web browsers, which would use the HTTPS record, not the SVCB one.
- taftster 4y agoThis is the kind of stuff that makes the internet fun. I really like the types of projects that exist simply to exist. People putting out things that have no reason except for the enjoyment. It seems like we're missing this kind of stuff lately. Even the April 1st hacks have failed to be interesting on the same level. I wonder what has happened and why.
- crabbone 4y agoYeah, and then this "enjoyment" spills into real-life widely used programs, s.a. Kubernetes. This is literally me, yesterday discovering a little "gotcha" of an L7 reverse proxy in Kubernetes: # netstat $(hostname) 40443 Trying 10.X.X.X Connected to hostname.foo.bar Escape character is '^]' ... # ss -tpln | grep 40443 # # lsof -i :40443 # This kind of fun makes you want to punch each individual ITF member as well as people in Kubernetes who decided it'd be cool to implement L7 proxy using DNAT.
- p_l 4y agoGood that they didn't, then. No, seriously, there is no L7 reverse proxy implemented using kube-proxy mechanism (aforementioned DNAT) - It's L4 proxy for supporting legacy code that doesn't support intelligently querying for endpoints (by SRV record, k8s API, or other service discovery protocol). It's not even required to use it, Services can be declared to not need it (common example is using service mesh or ingress controller with http)
- crabbone 4y agoWe are talking about Kubernetes ingress controllers, in particular, ngnix-based one.
- p_l 4y agoWhich doesn't use DNAT unless you explicitly configure it to do so. nginx-ingress will read Service Endpoints through k8s API and resolve connections to specific pod IPs so long as your network is properly deployed. Of course it's also possible to make it go through serviceIP (which by default is still implemented using DNAT in kube-proxy), but it's not recommended. NodePorts like the example given earlier exist for dealing with external traffic from hosts unaware of (possibly unroutable) serviceIP and podIP ranges. I had lots of !FUN! with nginx-ingress, but that's not one of its faults.
- ttyprintk 4y agoClamAV passes its versioning via DNS. No need to open outbound HTTP.
- unixhero 4y agoAs a TXT dns entry? Or?
- ignoramous 4y agoWonder if ClamAV might have learnt this trick from malware implementations.
- criddell 4y agoI had set up dnsmasq once and spotted all these weird DNS requests coming out of our network. Turns out some Java installation builder software was using DNS to verify the license status of the software. They would do a lookup something like $LICENSE_NUMBER.$NAME.$ZIPCODE.example.com and the reply would indicate the license status.
- mikeponders 4y agoYou can bypass captive portals by using some of the ideas displayed in this presentation, but you will probably also need to have a server with a good unmetered connection and a cleverly named (sub)domain.
- EvanAnderson 4y agoIodine (https://github.com/yarrick/iodine https://github.com/yarrick/iodine) will do this. I did it with my home Internet connection as the server and found it very useful in a pinch. Using DNS to exfiltrate arbitrary data thru firewalls that don’t log DNS requests is handy too.
- arjvik 4y ago> and a cleverly named (sub)domain What do you mean here?
- exikyut 4y ago- The One True Sysadmin will look through all the logs and find your server and block it and you'll have to pick another one next time - The One True A(G)I will find your domain automagically and block it and you'll have to pick another one ...In all seriousness several MB of data to a DNS server will get you bitten at least once because someone somewhere is actually doing the job they're paid to do. But it'll probably be an exception.
- mikeponders 4y agoAs another replier noted, you might evade detection. But the reason I mentioned it is that captive portals (before authenticating) may not allow you at all to do DNS queries... except, for their own whitelisted domains. Depending on how they do it and how they wrote their rules, if they allow example.com you could potentially query example.com.mydomain.com
- exikyut 4y agoIodine can apparently only go up to 1Mbit because of Reasons™ per the documentation. I've always been curious why.
- manuel_w 4y agoTangentially related: One can store SSH server host keys in DNS and tell the client to make use of them. (OpenSSH supports `VerifyHostKeyDNS=yes`.) This is an alternative to the client asking the user to confirm the server host key, which many people just blindly confirm. I asked GitLab if they could make use of that, but it hasn't received much attention so far: * https://gitlab.com/gitlab-com/www-gitlab-com/-/issues/10376 https://gitlab.com/gitlab-com/www-gitlab-com/-/issues/10376
- Nextgrid 4y agoYou'd need DNSSEC for this right? If not can't an MITM still intercept the DNS lookup and substitute their own key? In fact, even if the original domain does support DNSSEC, can a userspace program such as the SSH client actually tell whether the record it just resolved was resolved using a DNSSEC-aware resolver?
- aaronmdjones 4y agoYes, you would need a DNSSEC-validating resolver, and no, ssh(1) can't confirm if the answer was actually validated or not. There's an "ad" (Authenticated Data) flag in the DNS reply header that a resolver can set to 1 to indicate that it validated the answer, but an MITM can also just set that to 1. The client would have to do its own validation, and ssh(1) doesn't. Therefore, you can only safely use this if you use a DNSSEC-validating resolver, and you trust the resolver (e.g. you administer it yourself), and you have a trusted path between you and it (e.g. it's on your LAN).
- devman0 4y agoTrusted path could also be DoH or DoT as well, but yeah, not just 53/udp in the clear over the internet.
- 3np 4y agoAn example to work around this would be to run a validating resolver (for example unbound) on localhost of each host and have it forward to whatever DNS server you use today. If you're on Ubuntu, you most likely have a local resolver running already.
- trebligdivad 4y agolspci has an option to update it's database over DNS (lspci -q)
- VLM 4y agoSomeone in the old days was playing around with VERY small RSS feeds in DNS TXT records. The slides mention blogging but at a UI level whereas this was "what if we put actual RSS feeds in DNS?" There was some sort of multiline protocol; don't remember how it worked. It never gained traction but I thought it was cool. There was also something very weird with VRML files in the early 90s, like favicon but in 3d and shipped over DNS kind of idea. Yeah that got about zero traction also.
- xdfgh1112 4y agoThere should be a whole website about failed 90/00s web technologies that didn't take off.
- justinator 4y agopets-cemetery.com
- xdfgh1112 4y agoOff the top of my head: VRML, Gopher, AOL, CompuServe, MSN, the blink and marquee tags, XHTML and the semantic web, ActiveX, VBScript, newsgroups
- bruce511 4y agoWhile those are (mostly) dead now, it would be unfair to say they never took off. In their day some of these were huge,and enormously influential on what we have today. News (NNTP) basically _was_ the Internet before HTTP came along, and still exists today, albeit in niche form. I still check News every day. Your standard seems to be "things that were one popular, but have been replaced." whereas the 90's were full of ideas that literally never took off. Like cuecat https://en.m.wikipedia.org/wiki/CueCat https://en.m.wikipedia.org/wiki/CueCat And don't get me started on the blink tag. That was huge, if anything, overused. That was activly killed (for good reason) because it made most Web pages beyond horrible. For some reason non-computer people weren't happy unless like half the site was blinking all the time. It was beyond terrible. Frankly the jury is still out on VR headsets (an idea from the 60s that simply won't die.)
- evantahler 4y agoLink to pdf slides https://fosdem.org/2023/schedule/event/dns_bizarre_and_unusual_uses_of_dns/attachments/slides/5309/export/events/attachments/dns_bizarre_and_unusual_uses_of_dns/slides/5309/Rule_53_Bizarre_And_Unusual_Uses_of_DNS_DC4420_2022_09_27.pdf https://fosdem.org/2023/schedule/event/dns_bizarre_and_unusu...
- grendelt 4y ago"HTTP over DNS over HTTPS"
- zyberzero 4y agoI remember 15 years or so; a friend and I figured out that DNS got through my friends cellular connection even though the data limit were reached. We tested and set up a socks-over-dns-proxy back then and it worked! We loled and then never did anything more than that unfortunately (or it depends, we´d most likely be detected if we continued to use that, eh, solution).
- philsnow 4y agoAbout 15 years ago as well, a cruise ship I was on blocked most connections if you hadn't paid, but allowed DNS, so I tunneled some vpn over dns and it worked.
- teaearlgraycold 4y agoI want a comedy sketch for this where you’re explaining your traffic to a sysadmin. “I just really like looking up A records from dig”
- gloyoyo 4y agoSo true. Supposedly, worked in a couple cases, but they knew to accept the quote.
- pantalaimon 4y agohttps://code.kryo.se/iodine/ https://code.kryo.se/iodine/ comes to mind
- hsbauauvhabzb 4y agoThis is really common in ‘airgapped networks’ so much that tools exist to create tunnels. I tested this on a job and upstream dns servers blocked me after about 1mb of traffic, it’s an abuse of a public service and a complete waste of resources (5-10x amplification) so something that’s completely understandable. I imagine 10 years ago, controls may not have been so good though. Edit: part of the rationale in some cases, I believe, is to facilitate captive portals for hotel wifi login etc.
- 4y ago
- reisse 4y agoAnother example is tic-tac-toe over DNS, https://github.com/Firemoon777/tic-tac-toe-dns https://github.com/Firemoon777/tic-tac-toe-dns
- gooseyard 4y agoI know of at least one serious security incident (maybe this is mentioned in the talk but I didn't hear it) in which data was exfiltrated from the victim's network by patiently making successive dns queries, which were of course unfiltered as they were considered innocuous, for long hostnames in which segments of the data were encoded. It was not an easy thing to patch.
- unsignedint 4y agoI think it's different than the one discussed in the slide, but VPN like SoftEther can obfuscate traffic as DNS, too. https://www.softether.org/1-features/1._Ultimate_Powerful_VPN_Connectivity#1.6._VPN_over_ICMP.2C_and_VPN_over_DNS_(Awesome https://www.softether.org/1-features/1._Ultimate_Powerful_VP...!)
- js2 4y agoDeCSS was at one time distributed via DNS: http://decss.zoy.org/ http://decss.zoy.org/
- zrail 4y agoI just tried it, it still works.
- hsbauauvhabzb 4y agoHTTPS://nip.io resolves to IP addresses as provided by the subdomain, a useful tool and demonstration in some circumstances
- b7r6 4y ago[flagged]
- w0mbat 4y agoMods - the above post appears to be in the wrong thread, having nothing to do with DNS.
- rajnathani 4y agoI'm not sure if this was covered in the presentation, but DNS Toys (which can for example tell the weather, do units conversions, etc.) was featured on HN about 8 months ago: DNS Toys (946 points) https://news.ycombinator.com/item?id=31704789 https://news.ycombinator.com/item?id=31704789
- mrb 4y agoI once wrote a Chrome extension that uses DNS instead of HTTP to fetch web content: http://blog.zorinaq.com/cdn53-a-super-distributed-cdn/ http://blog.zorinaq.com/cdn53-a-super-distributed-cdn/ Fun fact: you can store ~64 kB of data in a single TXT record
- c0nsumer 4y agoI was once working on a way to minimize PAC [1] file changes and came up with a hacky way to use DNS for this. The client would use isResolvable(parsedhost.pactest.int.domain.com) after some parsing of host, and use the result of the test to return either a PROXY result or DIRECT. It resulted in an extra DNS query for every site being accessed, but because the query is internal and the client caches the result, it didn't add much load but otherwise worked well. Then it was just a matter of automating A record creation. [1] https://en.wikipedia.org/wiki/Proxy_auto-config https://en.wikipedia.org/wiki/Proxy_auto-config
- m3047 4y agoAll your counters, sets and lists you've got in Redis, with the equivalent of a WAF: https://github.com/m3047/rkvdns https://github.com/m3047/rkvdns
- Cuteaesthetic 4y ago[dead]
- Jinxcosplay 4y ago[dead]
- Kawaiiaesthetic 4y ago[dead]
- MeshFresh456 4y ago[dead]
- Veranorooz67 4y ago[dead]
- DorkyDweeb2 4y ago[dead]
- HilariousRed3 4y ago[dead]
- Soverinowu09 4y ago[dead]
- Storystork790 4y ago[dead]
- Soverinowu689 4y ago[dead]
- mattpallissard 4y agoHesiod came out if project Athena. It was used for posix accounts. Similar function to directory services such as LDAP. Last time I checked (several years ago). There source code was still available if you poked around the CMU FTP servers. It was unavailable via http. Edit, it actually may not have been FTP, it may have been on their AFS volumes. https://en.m.wikipedia.org/wiki/Hesiod_(name_service) https://en.m.wikipedia.org/wiki/Hesiod_(name_service)