James John – Software Engineer

Archives

dns

This Python Program will Set your DNS Servers in /etc/resolv.conf Accordingly

Etisalat Mobile Communication Network blocked OpenDNS Server which turns out to be the server I use most. So each time I connect to Etisalat, I will go to edit my /etc/resolv.conf and set it to Google Public DNS. Been doing this for months and I told myself, why not write a program to check this […]

Parsing and Fetching DNS Resolvers in /etc/resolv.conf Using Python

In an app development I needed to use my system resolvers which is different from my ISP default resolver, and Python keeps taking my ISP resolver. I decided to put up this simple function to get resolvers for me in /etc/resolv.conf, here is it: https://github.com/donjajo/py-world/blob/master/resolvconfReader.py I hope this helps

How to Make Changes in /etc/resolv.conf Permanent

I’m not good at using my ISP’s DNS Servers because last time I did, it wasn’t always up. I browse on a mobile network, so decided to be using another DNS servers which are always up all time… I use either Google DNS or OpenDNS and changing DNS servers in Linux is editing the /etc/resolv.conf […]