Advanced

Alternative DNS services: pro and contra

Posted by darkduck on · 9 comments
Linux notes from DarkDuck; By darkduck
Mail this story
Print this story

The issue which your Internet provider may have is that their DNS servers may be down for whatever reasons. Technical glitch, software or hardware upgrade, whatever else. If your provider's DNS servers are down, you cannot use domain names to get access to Internet sites. Is there any alternatives to your provider's DNS service? Yes!

Full Story

  Nav
» Read more about: Story Type: Tutorial

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (9)

DNS server that compares answers?

I'm using DNSMASQ on my home network, just to aggregate DNS queries, and provide a little caching to us.

But dnsmasq only uses one DNS server at a time. Given that DNS servers seem like they're going to fall under the sway of Giant Immoral MegaCorporations, and start to "censor" domain names, how can I use two or more outside DNS servers, and get the local, caching/aggregating server to compare answers?

Do I need to hack on dnsmasq to do this? DNS is not my main area of expertise, so forgive me if this is a dopey question.
According to the dnsmasq manpage, it already accepts a list of upstream nameservers, and iterates through the list until it gets a satisfactory response.

Any kind of voting-triplet system such as you're suggesting would most likely bring your Net access speed to its knees: that's three queries per resolution you're waiting for, all of which have to be in before the majority vote can be returned. If you've got an upstream nameserver that's lying about certain domains, you can now restrict things so that it never gets asked about them, if I've read the manpage correctly, but IMO your first step should be comparing cache-dumps derived from using different upstream nameservers so as to prove or disprove your supposition of guilt.

I've been using dnsmasq for roughly a decade, and I'm amazed at how much capability has been added into it since I first installed it. If you've been using it awhile too, I suggest you grab a fresh copy and see what all you can do with it now.
@cr, the initial queries after server/proxy startup would suffer from quorum-seeking slowdown, but caching could easily mitigate things over time. Data persistence in /var could help things, too.

(I already hear people saying, "So do it!". Sure, be my guest...)
The way dnsmasq is set up, if someone wants to code up that triplet-voting resolver, it can be built as a stand-alone demon, maybe on an aliased interface. Then dnsmasq is pointed at the voter, sending its queries to it, and the voter is pointed at those three different upstream nameservers. If you code it, do put in an option for logging all queries, their three responses and their resolve-times. Just saying.

@gus: One reason I keep those extra resolv.conf files on hand is so we can switch from one source to another, dodging lag, when the first one bogs down for whatever reason. In a small network setting (3 or 4 people here at present), my experience says that most DNS queries are going to be unique, so the lag will be in-your-face obvious most of the time. When that happens, so are the user complaints: "Is somebody bricking the Net with a download?"

I honestly think dodging lying nameservers is best done by analyzing what domains they lie about and then arranging the static configuration so as to never send queries about those domains to them. That means taking cache dumps first and processing them to see exactly what's being lied about.

Oh, and do investigate just what those blocked domains really do and thus why they're blocked. I keep a massive hosts file that redirects a bunch of ad-farms, click-trackers and malware sources to localhost, so I'm lying to local DNS queries myself, with good reason.

Site not responding

Hmmm. Well, DarkDuck is having more issues than DNS. Clicking the link in Firefox brings me to OpenDNS's page, claiming DarkDuck's blog site isn't responding. Opening the site in Konqueror shows a strange webmail form.
Okay, that was weird. As soon as I posted this, the site began responding.
Maybe it just did a Dark Duck.

/me ducks
djohnston: maybe it was just you mistyped anything?

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post