It turns out, however, that ditching your ISP’s DNS servers may not be enough. Recently, the same ISP DNS hijacking shenanigans have been observed even when DNS settings are explicitly configured to use non-ISP servers. How can you tell whether your ISP is hijacking your DNS? Easy:
Quote:
$ ping nonexistentdomain.tld
PING nonexistentdomain.tld (184.106.15.239): 56 data bytes
64 bytes from 184.106.15.239: icmp_seq=0 ttl=236 time=1200.926 ms
64 bytes from 184.106.15.239: icmp_seq=1 ttl=236 time=71.050 ms
64 bytes from 184.106.15.239: icmp_seq=2 ttl=236 time=72.768 ms
[...]
PING nonexistentdomain.tld (184.106.15.239): 56 data bytes
64 bytes from 184.106.15.239: icmp_seq=0 ttl=236 time=1200.926 ms
64 bytes from 184.106.15.239: icmp_seq=1 ttl=236 time=71.050 ms
64 bytes from 184.106.15.239: icmp_seq=2 ttl=236 time=72.768 ms
[...]
Quote:
$ nslookup nonexistentdomain.tld
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: nonexistentdomain.tld
Address: 184.106.15.239
Name: nonexistentdomain.tld
Address: 204.232.137.207
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: nonexistentdomain.tld
Address: 184.106.15.239
Name: nonexistentdomain.tld
Address: 204.232.137.207
If you have a router running DD-WRT or Tomato, then you are in luck, because most likely you’ll have a tool called Dnsmasq at your disposal. Assuming you have DD-WRT running on your router, the following configuration steps should make short work of the offending IP addresses:
1: Visit your DD-WRT’s configuration page, often at
Code: Select All
http://192.168.1.1/
3: Insert the following into the “Additional DNSMasq Options” textarea field:
(Be sure to replace the IP addresses with the offending digits proferred by your ISP.)
Quote:
bogus-nxdomain=184.106.15.239
bogus-nxdomain=204.232.137.207
bogus-nxdomain=204.232.137.207
Quote:
$ ping nonexistentdomain.tld
ping: cannot resolve nonexistentdomain.tld: Unknown host
$ nslookup nonexistentdomain.tld
Server: 192.168.1.1
Address: 192.168.1.1#53
** server cannot find nonexistentdomain.tld: NXDOMAIN
ping: cannot resolve nonexistentdomain.tld: Unknown host
$ nslookup nonexistentdomain.tld
Server: 192.168.1.1
Address: 192.168.1.1#53
** server cannot find nonexistentdomain.tld: NXDOMAIN
So what do you do if you don’t have Dnsmasq running on your router and can’t easily flash your router with DD-WRT or Tomato in order to get it? Most likely you’ll have to manually install and configure Dnsmasq on your computer, the details of which are well beyond the scope of this article. Aside from the added setup complexity, installing Dnsmasq on an individual computer won’t solve the problem for other computers you may have on your network. So this is really a problem that is best solved at the router level. If you don’t have the technical wherewithal to flash your router with DD-WRT or Tomato, Buffalo Technology makes a line of routers that come with DD-WRT pre-installed:
Quote:
Buffalo - WZR-HP-AG300H ($95)
Buffalo - WZR-HP-G300NHv2 ($67)
Buffalo - WHR-HP-G300N ($47)
Buffalo - WZR-HP-G300NHv2 ($67)
Buffalo - WHR-HP-G300N ($47)
Source:
Code: Select All
http://hackercodex.com/guide/how-to-stop-isp-dns-server-hijacking/







