Skip to Content.
Sympa Menu

discuss - [opennic-discuss] Generated resolv.conf

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

[opennic-discuss] Generated resolv.conf


Chronological Thread 
  • From: Jeff Taylor <shdwdrgn AT sourpuss.net>
  • To: discuss AT lists.opennicproject.org
  • Subject: [opennic-discuss] Generated resolv.conf
  • Date: Fri, 28 Jun 2013 15:11:55 -0600

I've seen periodic requests for a method of keeping resolv.conf up to date, since the list of tier-2 servers seems to change regularly. To make this information useful, we also want server reliability to be balanced with geographic distance.

From a command line, these two commands will give the same results (note that the quotes are only required if you want to use variables like below):
# curl "http://opennicproject.org/geoip/geotxt4.php";
# wget -qO- "http://opennicproject.org/geoip/geotxt4.php";

This will give you three lines with the nearest servers that have a reliability of 98% or greater in the past three months. There are two URL variables which allow you to fine-tune these results...

res=3 -- This specifies how many results to return
pct=98 -- What do you consider the minimum reliability percentage

With this information, you can get custom results like this...
# curl "http://opennicproject.org/geoip/geotxt4.php?res=5&pct=97.5";

It should be easy enough to run a daily cron job which pulls these results, and generates a new file with your personal domain and search lines. Feel free to make any further suggestions, or let me know of any bugs in the results.


  • [opennic-discuss] Generated resolv.conf, Jeff Taylor, 06/28/2013

Archive powered by MHonArc 2.6.19.

Top of Page