outcoldman
outcoldman Denis Gladkikh

Give your router second chance.

DD-WRT, linksys e4200, router, and Dynamic DNS

Few days ago I decided that I want to have my local DNS server, becase I want to have more than one DNS name for the same server (hosting multiple websites / services on the same server and have meaningful DNS names). At first I tried to setup it with DNSMasq on the same Ubuntu server as I use for everything else. After that you will need to specify this DNS server in router options, so all devices on local network will use it to resolve names. That was not hard to setup, but problem I had with this solution: any reboot of server will prevent all other devices from accessing Internet till it will not start to answer on DNS requests. You can also specify second DNS server as backup as Google DNS 8.8.8.8 and 8.8.4.4. But this also has a problem: on first error router will switch to second DNS server (Google DNS in our example) and will not use first one for some time, which means that all local resources can be unavailable for some time.

Better ideas? Sure. You can buy super expensive and advanced router, which may have this feature. I bought Netgear Nighthawk X6 Tri-Band R8000. Honestly I don’t even remember if this router has support for custom DNS records or not, because after I started to experience the same Wi-Fi issues as most of Apple users on Yosemite, I decided that I want to return it and find something else. I don’t think that this was Netgear issue, but because my old Linksys E4200 worked without any issues, I decided to keep using it till I will not find something else.

So after I returned R8000 I started to explore what else I can do or buy. What is the router for advanced users? After googling I found, that I already an owner of one of the most advanced routers Linksys e4200 v1, I just don’t have right firmware installed on it. I have heard about DD-WRT, OpenWrt and Tomato before, but for some reasons never thoughts that it worse my time. Oh boy, I was wrong…

First of all big thank to Steve Jenkins’ Blog and especially My Cisco Linksys E4200 DD-WRT Settings for Max Speed. I never wanted to get Max Speed from my router, I was satisfied with what I had, but this post gave me a good start to understand what benefits I can get from DD-WRT and how to install it. I would recommend before setting all of the settings which Steve suggests, read first what it means. The same settings which works for Steve, maybe will not work for you. For example Steve recommends to use Frame burst, but help says

… this is only recommended for approx 1-3 wireless clients, Anymore clients and there can be a negative result and throughput will be affected.

I have more than 1-3 devices, so I did not use this one. Be careful. Also I use old build which Steve marked as Outdated Builds I No Longer Recommend recently, mostly because couple weeks ago it was recommended by him. Other than that I just followed his blog post to understand all parts of this firmware and configure it in most cases in the same way as he did. After that I verified that everything works as expected, backed up configuration and started to explore what else I can get from it.

Have feedback or questions? Looking for consultation?

My expertise: MongoDB, ElasticSearch, Splunk, and other databases. Docker, Kubernetes. Logging, Metrics. Performance, memory leaks.

Send me an email to public@denis.gladkikh.email.

The content on this site represents my own personal opinions and thoughts at the time of posting.

Content licensed under the Creative Commons CC BY 4.0.