How difficult is it to set up a DNS server? My budget is $0 but I have some equipment laying around unused... I just don't know if it's the right equipment.

And it wouldn't help very much when I'm out and about using my phone...

@lesbianhacker What you need is a computer (any computer, it doesn't need much in terms of resources), which a static IP address.

That's all you need really. Then you just need to read up on how it works, but it's not very complicated.

@loke Oh sweet, if that's the only equipment I need then I'm set. I've got a raspberry pi, I'll have to dust it off. Thanks!

@lesbianhacker If you want reverse lookup to work, you need to work with the ISP so that they delegate the reverse lookups to your server. That's probably the hardest part.

That said, reverse lookups are not really something that is needed.

@loke Would reverse lookups stop working entirely if I didn't do that? Or could a fallback DNS server handle it?

I've used it before, but if I have to do without it I don't see it being too much of a hassle.


@lesbianhacker Well, a forward lookup simply asks the owner of the domain what the IP address is. You are the owner of the domain, so it will ask whichever DNS server you have told the registrar to use (i.e. yours).

Reverse lookups are the opposite. The DNS will ask the owner of the IP address range (i.e. your ISP) which DNS is responsible for providing the answer. Therefore you need to make sure the ISP returns the correct DNS.

If not, they'll respond themselves, which might be OK.

@loke Oh, okay. I'm only really planning to use this as a way to filter domains that I'd rather not allow my computers to connect to (certain advertising agencies, maybe Facebook eventually), and any sites I actually want to reach I'll be relying on an established DNS.

I'm not planning to allow anyone on the outside of my network to connect to the server. If my ISP does end up playing middleman I'll just have to deal with it lol

Then it's even easier. You don't have to do anything, since you just configure your local machines to connect to your DNS, and you configure it to forward any requests for unknown domain names to the upstream server.

Isn't your requirement can fulfilled by blocking domain name with hostname file?

Or with Pi-hole ?

@lesbianhacker @loke

The pi-hole basically implements that. It's more fun to do it yourself though.


I just check it's all similar.

I like customisation solution like DNS server than standalone like pi hole.

I am using host file to filter out on my mobile and desktop.

Like to hear how much your suggestion of own dns server can be advantage to host file filter ?

@loke @lesbianhacker

Well, if you have more than one device, manually managing a hosts file is annoying.

Also, there are devices that doesn't allow you to edit them.

That's good logic.

I get the point.

In order to add host file on Android need rooting.

Updating host file requires same effort to update list on DNS server? Except it's once we have to update on dns server.

Could you a point to basic tutorial for dns server ? I'd like to try on with either virtual box or Beagle bone black (sbc).

Appreciate your explaination

@loke @lesbianhacker

@noorul @loke

I don't have a tutorial (because I haven't gone out and looked for one yet) but /etc/hosts doesn't let you use wildcard characters, so instead of *.facebook.* I would have to manually add each variation.

There are hundreds of them, and I'd have to make sure to update them every time a new one appeared.

Yes, hosts file doesn't support wild card entry.

And I am simply update those new url from the ads block list
@lesbianhacker @loke
Sign in to participate in the conversation
Functional Café is an instance for people interested in functional programming and languages.