So my ISP was hijacking my DNS (karthihegde.dev)
119 points by frostbyte7 a day ago
simonjgreen 8 hours ago
Noting this article skips over any discussion about why, or potentially (in the eyes of the law at least) legitimate reason an ISP might do this.
Many ISPs in many countries are forced to do this for certain enforcement action that gets put upon them by their respective states for things such as age gating, censorship, monitoring, it varies state by state.
And to be clear this is in no way an endorsement of the practice, and I am confident no ISP WANTS to do this.
I am speaking here as the owner of a UK ISP (who does not currently do this).
Geezus_42 5 hours ago
I'm pretty confident ISPs do want hijack DNS since they've been doing it for decades in order to push ads to their customers.
gruez 5 hours ago
Examples?
breakwaterlabs a few seconds ago
Geezus_42 5 minutes ago
dspillett 5 hours ago
mafuy 5 hours ago
mqwdojhv5 3 hours ago
If you're a UK ISP owner, you're almost certainly a RIPE NCC member, given the UK is within its regional scope. Therefore, you've probably spoken to other RIPE NCC members via mailing lists or meetings at least once. Since I also represent a provider that is a RIPE NCC member, I can object that not everybody shares the same ideology you noted. There are some providers that actually speak in favor of such over-regulation and censorship. Everybody can read and/or participate in the RIPE Discussion List, though, and you will be amazed by some responses from ISPs that speak in favor of such measures.
But the good news is that at least the majority (for now) is against it.
eqvinox an hour ago
I speak for another RIPE NCC member when I say that that ideology is limited to a very small minority.
Even outside ideology, plain business sense makes ISPs not want to deal with censorship & co. It's work to do that, hence costs money. But there are also ISPs resisting out of ideology and civic duty.
saidnooneever 5 hours ago
this is valid, in NL most DNS is also heavy monitored and intercepted to do blocks if mandated etc. if you want to get around it u can tunnel ur tlsdns thingy to another place and they essentially cannot intercept it, they can still block the IPs it resolves to so its hit and miss depending on how the other end is implemented.
its usually not nefarious, that is just the simpelest (and usually, not always) wrong explanation.
people who think this is not normal probarbly didnt experience what kind of shit u could find on the pre google pre monitored internet. for sure shit u do not want your kids to find. if u dont understand, then likely u dont have kids and very weird fetishes...
NordStreamYacht 8 hours ago
[flagged]
numpad0 5 hours ago
Shouldn't it be politically problematic to say a woman looking for pornography has reasons to be troubled, in a democratic and secular state?
Assuming, you had cues for the gender & intent of the author, which I don't, but otherwise it's even more horrible to think about.
neuroticnews25 6 hours ago
Why she? Karthikey is a male name and the youtube streams show a male face. (Of course it's just a weak signal that can be overriden with an autor's declaration!)
pjc50 5 hours ago
Huh, tried this on my phone and I get an error "DNS points to local or disallowed IP" page from Cloudflare. Either they've experienced some sort of nameserver registry level takedown or they've messed up their DNS.
RockRobotRock 7 hours ago
That is incorrect. It's a generic torrent site.
vasco 8 hours ago
What's wrong with downloading porn?
figmert 7 hours ago
undefined 7 hours ago
witnessme 8 hours ago
Why do you assume the others have same ethical compass as you? I hope everyone has the same compass but we have seen again and again trust being broken.
eqvinox an hour ago
ISPs talk to each other, and people move jobs between them. It's not a uniform community but you certainly get a sense of the general spread of opinions after a while.
There are of course outliers but most people I know in the field care as much about personal rights & freedom as anyone else. Maybe even a small bit more.
gib444 5 hours ago
This is a complete non sequitur
jwrallie 9 hours ago
My workplace is messing with DNS as well, probably to filter specific websites, and I would not mind it since for the context of my usage that is perfectly fair.
But their DNS responses have latency spikes every couple of minutes of 1-2 seconds that was driving me crazy. I simply enabled DNS over HTTPS in Firefox and everything feels so smooth now.
I have no idea how my coworkers seem to be so insensitive to it.
mcmcmc 35 minutes ago
Have you bothered asking your IT to look into it?
pbhjpbhj 6 hours ago
Enabling DoH on a locked down workplace network sounds like a way to get fired.
But I guess that if they let you do it they're probably not competent enough to catch you.
undefined 4 hours ago
pjc50 5 hours ago
They might be proxying all your traffic through a "WAF". I've noticed that even quite a lot of regular websites linked on HN on "non standard" domains are simply unresolvable on my work network.
Yevini 5 hours ago
[dead]
Terr_ 10 hours ago
I fear a future where pretty much everything is trying to hack you or doing something which is indistinguishable from the meddling of a hostile actor.
I suppose the answer is politics rather than technology: Get enough people together to make a rule against it, and at least it will become niche.
marcosdumay 4 minutes ago
Hello from 9 hours in the future.
Things are crazy now. Our TVs snapshot the stuff we watch; our telephones, watches, and TVs are constantly listening what we say; our PCs have undocumented "remote administration" devices that we can't opt-out; every internet service out there is stealing every data that it physically can and selling it to a long list of organizations, including some military ones...
Yevini 5 hours ago
I'm not sure regulation alone would solve it. Depending on the country, governments themselves sometimes require ISPs to interfere with DNS
pjc50 5 hours ago
That is regulation! You do actually have to win the argument for liberalism in public if you don't want your fellow citizens to keep trying to stop you doing this.
daitangio 8 hours ago
Telecom Italia locks my DNS server (I cannot change it).
I ended up using PIHole as DHCP, to drive home devices to PIHole, and control my privacy.
The trick is simple: disable DHCP on your router, and activate it on PIHole. As a bonus, PIHole on my RasperryPI2 is way faster than the little chip on my provider Router, and can be patched automatically with unattended upgrades.
noselasd 7 hours ago
Note that there are ISPs that actively hijack traffic to UDP port 53 further inside their network and transparently maps that onto their internal DNS servers.
jachee 6 hours ago
This is why you would want to setup DNS-over-TLS or DNS-over-HTTPS to, say, 1.1.1.1. They can’t hijack DNS traffic that looks like HTTPS traffic.
someguyornotidk 7 hours ago
And if you can't disable DHCP or set the router in bridge mode, you can just add another router (that you control) between your ISP device and the rest of your network. I've been running this setup for over a decade and didn't run into any noteworthy issues. Leave the ISP-infested router outside your network.
a-french-anon 5 hours ago
Pretty sure that you can use DHCP and still override the DNS servers with most DHCP clients.
daitangio 7 minutes ago
Yes but you need to do it MANUALLY on every client. Using the PIHOLE DHCP automate this and simplify the setup.
nunez 39 minutes ago
AT&T in the US does this. Traditionally they did this so that failed lookups were routed to their search engine, which of course fed users ads.
hansvm 36 minutes ago
At least they no longer insert ads straight into web pages. Thank goodness for https.
undefined 22 minutes ago
jfyi 8 hours ago
Hardly a new thing.
Oh and btw, it's not "DNS Hijacking" it's a "Domain Helper", see: https://feross.org/shame-on-you-comcast/
eqvinox 13 hours ago
The point of running a local unbound is indeed to turn on DNSsec validation. After that, it's the domains' fault for not using DNSsec. But at least your own stuff won't be tampered with, because you use DNSsec on your own domains, right? Right?
:-(
Coincidentally, a bunch of free wifi stuff blocks the root key queries unbound does at startup, resulting in nothing working until you get those records in there somehow (e.g. load_cache).
yjftsjthsd-h 9 hours ago
I was under the impression that dnssec's entire value was rather controversial? I'm not a crypographer so I had to skim https://sockpuppet.org/blog/2015/01/15/against-dnssec/ and I still don't understand it, but if
> In fact, it does nothing for any of the “last mile” of DNS lookups: the link between software and DNS servers. It’s a server-to-server protocol.
is true, then I'm ... pretty unsold on its usefulness. Anyone wanna ELI5 whether that's untrue or anything's changed in the last decade?
jeroenhd 6 hours ago
DNSSEC as designed is pretty useless. It was designed in an era where computers could not be relied upon to do cryptographic validation of something like DNS records, so that duty was delegated to DNS servers like the ones ISPs ran, where records could be cached.
There are also potential downsides (like someone being able to enumerate your subdomains, if you care about such a thing) and it's often switched off by default on operating systems consumers use.
However, it's the only thing that validates DNS records at this moment. That alone makes it worth enabling, in my opinion. For many domain owners, you only need to tick the checkbox in your registrar's domain control pane. If you use a modern DNS server, it's also one config flag and maybe copy/pasting a handful of fields away.
I'll gladly turn off DNSSEC the moment we come up with something better. DoT/DoH doesn't solve the same problem and no real solutions seem to have been proposed. That said, modernisation efforts are still being done. Smaller keys and modern cryptography rather than the massive RSA ones for instance.
usr1106 9 hours ago
I can't speak about the strength or weaknesses of the whole concept.
Out of curiosity I enabled DNSSEC checking beginning this year. I mostly noted nothing in my browsing. However, with 2 services I noted obscure problems that worked only partially. Some Jira plugins and Swedish railway SJ. I needed to excempt some of their domains from being checked to use their services. Of course you waste a couple of hours every time it happens because you don't think of DNSEC first when some web-based services behaves weirdly. There might be more requests not served to my browser, but I just never noticed or bothered to debug.
So not fit for general use. And even as an experienced developer it's not easy to understand why an exception would be needed. A bug in systemd? Incorrect data in DNS? A real attack?
Edit: I don't use standard DNS on port 53 at all. Blocked outgoing requests on that port. Everything DoH or DoT. Of course I need to trust those endpoints at least in repect to confidentiality. And most domains are unsigned. At least for those unsigned ones I need to just trust also in respect to integrity.
jeroenhd 9 hours ago
eqvinox 5 hours ago
Note the linked post is from 2015. But also:
> domain-validated certificates remain insecure
...99% of the internet runs on DV certificates; that's what ACME & Let's Encrypt are at the end of the day.
(You might also note I didn't actually speak in favor of DNSsec, I'm just arguing that running unbound locally without having DNSsec validation enabled isn't particularly useful. I am, generally, in favor of rolling out DNSsec, but it certainly has its problems. It doesn't help against ISP tampering on unsecured domains, for example. DoT and DoH are better against that, if [and only if] you have a trustworthy cache to point them at.)
Bender 4 hours ago
Adoption at the TLD is high as it is expected of the TLD operators but the second level is very low. So .org itself is signed but .org second level domains are just below 5% adoption overall. .com second level is around 4.2%. .net second level are a little higher at around 5.2%. So most people's answer would be a solid no. HN audience may be some of that 5%.
denkmoon 9 hours ago
DNSSEC adoption rate means that this would be insufficient to detect (let alone prevent) that type of tampering for most domains. The correct solution is identified the the first paragraph of the post, which is to use a tamper resistant transport to the dns server (eg DoT, or DoH if you like everything being wrapped in http)
aand16 9 hours ago
How is this not illegal... isn't what the ISP doing "hacking"?
figmert 7 hours ago
Illegal, where exactly? In various western countries ISPs are by law required to block some websites. In other countries, ISPs ar eby law required to have escape hatches to be able to shut down the internet. In yet others, everything runs behind a firewall. Take your pick, I guess?
noselasd 6 hours ago
Very few, if any, countries makes this illegal.
Some countries have laws around Net Neutrality or Open Internet that can protect you from this, but even those countries have other legislations that can superseed that in specific cases. (e.g. hijacking DNS can be completely legal for some child protection laws, or to uphold laws that makes some web sites illegal)
throwawayffffas 7 hours ago
The hijack is probably legally mandated. The site he was trying to reach is a torrent site.
AceJohnny2 10 hours ago
Which ISP was doing this? It's worth calling out the bad actors.
drewfax 9 hours ago
It's pretty much most Indian ISPs and in this case it was ACT Fibernet.
dylan604 10 hours ago
Wouldn't the list of ISPs not doing this be easier to make?
AceJohnny2 10 hours ago
No.
There's a difference between what you're likely referring to, where the ISP's own DNS, which most people are using by default, returning particular results, and what the author is showing here where the ISP is actively tampering with outside DNS responses to insert incorrect responses.
Until now, I was not aware of any ISP doing the latter.
jeroenhd 6 hours ago
Only one ISP I've used ever did this (VodafoneZiggo) and that was over a decade ago, and only to redirect domains that couldn't be found to ad-filled "search" pages.
It's not universal, the occurance or this type of abuse seems to vary wildly from country to country
justauserid 7 hours ago
Want to ISP-less in India? :D At least ACT doesn't blanet throttle/fail uplaods of any sort like Jio does on its 5G – even LLM calls fail.
itopaloglu83 6 hours ago
I’m using NextDNS over https and frequently experience connection freezes with both Spectrum and T-Mobile. I don’t know what they’re trying to do, but I’m not happy with the way they’re trying to block basic services.
arcfour 9 hours ago
> Although your regular internet traffic is encrypted with TLS, your ISP can see the hostname during the TLS handshake (SNI).
https://support.mozilla.org/en-US/kb/understand-encrypted-cl... not anymore, with many (not all) sites.
gib444 8 hours ago
Very few of the top 10k sites support ECH
mgoetzke 6 hours ago
Deutsche Telekom did that too on my DSL line once, took some arguing to them suddenly 'do nothing' but it suddenly 'worked'
tripdout 3 hours ago
We need root DNS servers that support DoH/DoT.
eqvinox an hour ago
No. That's not within the design function of the roots.
It's very much part of the design that roots and caches are separated. The security properties necessary between root and cache (authenticity) are fulfilled by DNSsec, not DoT/DoH (primarily privacy). And most TLDs are DNSsec signed, so this part is in fact OK. (Both give some level of tamper protection, in a different manner though.)
You're probably saying this because you run a local cache directly against the roots. If you need DoT/DoH, you shouldn't be doing that and rather forward your queries to a cache somewhere else.
(To make sure there's no misunderstanding here: DoT and DoH do absolutely nothing to guarantee the data you're getting is what the roots/TLD/owner published. It only ensures you're talking to the cache you think you're talking to. The cache can serve to you whatever it wants.)
Sha1rholder 10 hours ago
Sounds familiar to a Chinese
amstan 9 hours ago
Reminds me of the Xfinity "Your personalized WiFi summary" emails. Despite returning their router, using a third party almost-layer-2 modem, my own openwrt router (with its own wifi, thank you very much), their emails seem spooky.
They have a counter of all of my devices, somehow (i mean... i guess their count is wrong, but it's infuriating that they try to keep track).
gruez 5 hours ago
All of that could be done without "ISP was hijacking my DNS". DPI/SNI sniffing is more accurate and allows you to get more detailed statistics (eg. "20% of your bandwidth goes to youtube"
ck2 an hour ago
ISP can still see exit IP unless you VPN
Cloudflare Warp is handy, complete tunnel even if not as private as real VPN
since 80% of the web is on cloudflare it accidentally makes it faster anyway
and you don't have to use the cloudflare client, you can use Wireguard
mariofdistrust a day ago
my mobile network carrier blocks quad9
486sx33 17 hours ago
[dead]
Tepix 8 hours ago
Why not start by
1. contact the ISP and ask wtf they are doing
2. switch ISPs
esskay 8 hours ago
How do you think that conversation will go? You phone them, get put through to the call center and surprise surprise its not covered by their script.
asdff 8 hours ago
Switching too is funny. You are at the mercy of what isp ran a line to you. Starlink will fully cooperate with government too. They are a military contractor after all and also at the mercy of musk deciding dumb stuff.
mgoetzke 6 hours ago
well after going down a few levels of tech support you do get to someone that 'does nothing' while it the magically works
bradknowles 10 hours ago
Another reason to use a VPN you can trust, across your entire network and at all times.
asdff 8 hours ago
But the isp sits between that no?
throwawayffffas 7 hours ago
All traffic to the VPN is encrypted, including DNS queries.
All your ISP can tell is you are using a VPN.
asdff 6 hours ago
ozim 9 hours ago
So a VPN you set up and run yourself.
asdff 8 hours ago
Isn’t that the same as no vpn with extra steps? You are tunneling traffic from a computer you own to a computer you also still own. Third party vpn the whole point is I don’t run it.
khafra 7 hours ago
netsharc 8 hours ago
Yum, screenshots of terminal windows, which is just text...
Edit: oh wait, it finally loaded, 3x3MB images of text with scenery in the background!
z3t4 8 hours ago
The story ended before it even started... What are the machine with the wrong IP doing? Is it just forwarding the request, or what is happening?