Skip to content

Quick DNS fix (for when your telco has borked your gaming domains again, etc)

  • by

When I encounter DNS poisoning, device crippling, or other tampering/network breakage, I tend to just edit the hosts flie of the computer I’m using to route around it.

Not (normally) ideal but a quick way to resolve the problem on a domain by domain basis.

On Windows 10 edit C:\Windows\System32\drivers\etc\hosts or on linux (and hence probably Mac) edit /etc/hosts

Add a line for each domain you wish to access correctly, with

<IP address><space><domain name(s)>

If you want it to work for and create a line like

You’ll need to edit it as administrator / root

Trickiest bit will be finding the domain’s correct IP first.

On a linux/Mac computer open a command prompt/terminal window and type

dig @ (assuming the computer has dig installed, otherwise just try nslookup as below – it’s normally also installed)

On a Windows computer open a command prompt and type

nslookup is a Google OpenDNS server, and so is fairly reliable.