When I misspell a domain name, the DNS servers of my ISP provider resolve the domain name to an IP address of a web server that tells you "we're sorry, the address you typed does not exist" together with some ads.
$ dig abcdefghijklmo.com # using the DNS from my ISP ... ;; ANSWER SECTION: abcdefghijklmo.com. 0 IN A 184.108.40.206 ... $ dig abcdefghijklmo.com @220.127.116.11 # using Google's DNS ... no "ANSWER SECTION" ...
As you can see, I'm getting that useless A record instead of an empty answer. I want to get rid of that record.
From my computer I can see that the DNS server is
192.168.1.1, which is the address of my router. I could change from
18.104.22.168, but I would lose the ability of resolving names within my LAN, so it is not an option. My router cannot be configured in any way, I cannot change it and I do not want to run a name server on another device. I contacted my ISP and they have explicitly said that they won't help me.
TL;DR: I must use
192.168.1.1 as name server, but I want to filter out answers containing
A 22.214.171.124. How can I do that?
I'm using Ubuntu Desktop 15.04 with NetworkManager and dnsmasq.