New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Raspberry Pi as (Local) DNS Server
I just ordered another Raspberry Pi, which i'm planning to use as a local DNS server to block ads on websites on all computers/phones/tablets in our house
But i was wondering if anyone else is doing this, and can it handle the amount of request to the dns server with about 8-10 devices connected at the same time?
Would be great if you could share some experience
Comments
I think it'd be incredibly slow.. the Raspberry's network isn't very good right? Whenever I used it for an AP it'd be miserable.
Yeah the PI should be fine if you only have 10 devices.
Network is fine if you're using ethernet (CAT5e here), used another RPi as a media server/player and I could transfer movies with about 9-10mb/sec to the RPi
Using a WiFi adapter (used a 300Mbps TP-Link one) will suck, about 2-3 mb/sec max
So network will not be a problem i guess, i was more worried about the CPU
CPU shouldn't be an issue unless your taking in a big amount of DNS requests. 10 client's wouldn't be enough to overwhelm the CPU.
Why not just use a local hosts file?
The early 80s are calling you.
This is what I use my rpi for at home. No issues with it at all, you'll be just fine @joodle
Lol..... that would be very time consuming every time i need to update the list of blocked websites/advertisers etc
There are lists you can just download and stick in there
I know, but updating the host file on the computers will take a lot of time, and how would you do that on android devices (if they are not rooted)?
Running a DNS server is much quicker (currently hosting one on a VPS in NL)
Your Pi will do great for that. I had one Pi running in my LAN for local DNS, Postfix+Curier-IMAP and Lighttpd+WebDAV and it could handle all that. And I had it running PiBang Linux that comes with a GUI. The Pi is very much underestimated.
@joodle The Pi will do fine.
MaraDNS proudly serves you 46299 DNS records
if you have problems with limited Raspberry Pi's resources, give Maradns a try.
i am ubuntu 12.04/13.04
"mararc" config file
"db.nogoodniks" config file
it's not that the pi is underestimated, the problem is they see:
"700 MHz Low Power ARM1176JZ-F Applications Processor"
and think 700 MHz can't do any thing and that's not true.
Can't wait till my RPi comes xD
Just installed a network switch in my room connected to the 2nd router on the attic so that my Pi has ethernet instead of WiFi (Yes, all network ports are already used on the router :P). Router is currently being powered by PoE, love it
I also just got a 2.1A Philips 2 port USB power adapter, should be enough to power the RPi i hope
Also got a Sandisk Ultra 16GB SDHC UHS-I 30MB/s Class 10x card, which i hope must be enough to have a decent fast RPi
Edit, Just found out that i'm i need of another ethernet cable... i'm all out of cables damnit. Back to the shop once again..
Sounds awesome. I love my RasPi's (I have four at my house), and I use them for a heap of purposes!
Just got 2 new CAT5e cables, on the box it says that it's capable of up to 350Mbps.. On our media computer with a gbit port we can transfer movies at around 80-90 MB/s (5400 RPM drive must be the bottleneck here) using the same CAT5e cables
Isn't that just weird..
@joodle
350Mbps is equal to 43.75MBps
The limit of a full gbit port is only 125MB/s, so its not really that weird?
@joodle are you sure it says 350Mbps and not 350MHz?
It says 350 Mbit
Photo: http://imgur.com/5CAyIUb
Maybe it came with a router or something, and the router is "up to 350Mbit"? A cable "up to 350Mbit" means nothing.
And on top of that "350Mbit" is a measure of file size, not of transmission speed For speed it should have been "350Mbps"
It's just a box with a cable, nothing more lol
Anyway, my RPi just arrived, only thing to do is flashing Raspbian Photo of the setup: http://imgur.com/9RU7I3C
@joodle
The # of devices doesn't really say how many requests/s your pi will be using.
It's not like they take any considerable amount of cpu, what makes you think that the pi wouldn't be able to pull this off?
I really want to hear your answer.
I thought that the CPU would be a bottleneck
>dns
>cpu bottleneck
Everything is working fine on my RPi, websites seems to load faster now also using a local DNS Server instead of using an external one hosted at a VPS
Now, try to use squid proxy to cache
I wanted to try that
Tried that, but turned out slower, as SD cards don't have the best read/write speeds.
@deejay31 I want to try that in a community that has 1mbps but if you connect to the US, the bandwidth will be 0.2mbps. Do you have any config for that?
Not personally, though you could try something like this