{ "info": { "author": "skyline75489", "author_email": "skyline75489@outlook.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: Proxy Servers" ], "description": "SimpleDNS\n=========\n\n.. image:: https://badge.fury.io/py/simpledns.png\n :target: http://badge.fury.io/py/simpledns\n\t\nA lightweight yet useful proxy DNS server designed to cope with `complicated Internet environment `__ in China, inspired by `ChinaDNS `__ , `dnsmasq-chinadns `__ and `fqdns `__, powered by Python `Twisted `__.\n\nRequirement\n-----------\n\n* Python 2.7\n* Twisted\n* Tornado for using Tornado IOLoop(optional)\n\nInstall\n-------\n\n* Linux/Mac OS X::\n\n $ pip install simpledns\n\n* Windows\n \n `Download `__\n \nUsage\n-----\n\nRun ``sudo simpledns`` on your local machine. Then set your DNS server to 127.0.0.1.\n\n::\n\n\t$ dig www.twitter.com +short\n\ttwitter.com.\n\t199.59.149.230\n\t199.59.148.10\n\t199.59.150.7\n\t199.59.150.39\n\nNote that the default cache lifetime depends on the ttl of DNS answer. You may want to set a larger ttl using --min-ttl to extend the cache lifetime.\n\nAdvanced\n--------\n\n::\n\n\t$ simpledns -h\n\tusage: simpledns [-h] [-b BIND_ADDR] [-p BIND_PORT]\n\t [--upstream-ip UPSTREAM_IP] [--upstream-port UPSTREAM_PORT]\n\t [--query-timeout QUERY_TIMEOUT] [--min-ttl MIN_TTL]\n\t [--max-ttl MAX_TTL] [--cache-size CACHE_SIZE] [-t]\n\t [--hosts-file HOSTS_FILE] [--dispatch-conf DISPATCH_CONF]\n\t [-v {0,1,2}] [-q] [-V]\n\n\tA lightweight yet useful proxy DNS server\n\n\toptional arguments:\n\t -h, --help show this help message and exit\n\t -b BIND_ADDR, --bind-addr BIND_ADDR\n\t local address to listen\n\t -p BIND_PORT, --bind-port BIND_PORT\n\t local port to listen\n\t --upstream-ip UPSTREAM_IP\n\t upstream DNS server ip address\n\t --upstream-port UPSTREAM_PORT\n\t upstream DNS server port\n\t --query-timeout QUERY_TIMEOUT\n\t time before close port used for querying\n\t --min-ttl MIN_TTL the minimum time a record is held in cache\n\t --max-ttl MAX_TTL the maximum time a record is held in cache\n\t --cache-size CACHE_SIZE\n\t record cache size\n\t -t, --tcp-server enables TCP serving\n\t --hosts-file HOSTS_FILE\n\t hosts file\n\t --dispatch-conf DISPATCH_CONF\n\t URL dispatch conf file\n\t -v {0,1,2}, --verbosity {0,1,2}\n\t output verbosity\n\t -q, --quiet disable output\n\t -V, --version print version number and exit\n\t \nConfiguration\n-------------\n\nConfiguration file is at /usr/local/etc/simpledns/dispatch.conf.\n\nDispatch conf file uses the same rule as in `Dnsmasq `__. 'Address' and 'Server' rules are supported.\n\n::\n\n\taddress=/example1.com/1.1.1.1\n\tserver=/example2.com/1.1.1.2\n\t \n\t \nDefault dispatch conf file is from `dnsmasq-china-list `__.\n\nFake ip list file is at /usr/local/ect/simpledns/iplist/txt. The source is `ChinaDNS `__.\n\nTODO\n----\n\n* Config file support\n* EDNS support\n* Negative caching\n\nLicense\n-------\n\nThe MIT License", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/skyline75489/SimpleDNS", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "simpledns", "package_url": "https://pypi.org/project/simpledns/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simpledns/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/skyline75489/SimpleDNS" }, "release_url": "https://pypi.org/project/simpledns/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "A lightweight yet useful proxy DNS server", "version": "0.1.4" }, "last_serial": 1828852, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "16c4dd2172c9d5934196a35b127acd5d", "sha256": "d9329381dbb217f8cc0660a209c4d1dbbb69a3752cf0b57d05b2a66864097208" }, "downloads": -1, "filename": "simpledns-0.1.0.tar.gz", "has_sig": false, "md5_digest": "16c4dd2172c9d5934196a35b127acd5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10476, "upload_time": "2014-09-01T09:09:40", "url": "https://files.pythonhosted.org/packages/43/2d/61b2c7ecfac0d720181b3d7a3b57649b13c5d8cc4a8d153c3672971cb6cc/simpledns-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0ae961babb2fa75be1c6f1eef2beebc5", "sha256": "cd62ddb3608ac7b5e692ad68111d35ac8614bc3de6fc166151197a8258d43bfe" }, "downloads": -1, "filename": "simpledns-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0ae961babb2fa75be1c6f1eef2beebc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10497, "upload_time": "2014-09-01T10:22:11", "url": "https://files.pythonhosted.org/packages/1f/f6/d84df0f177fb88a67bbcdf9b03c23bfbd9494c50aa75239b728dee46af60/simpledns-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "683bbe44cd640c198b735737460edfb2", "sha256": "5fe4b1581651dc8712afadb53c254969266eaee15cc9c7e2dedb51ef1cae77bc" }, "downloads": -1, "filename": "simpledns-0.1.2.tar.gz", "has_sig": false, "md5_digest": "683bbe44cd640c198b735737460edfb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12593, "upload_time": "2014-09-02T01:20:50", "url": "https://files.pythonhosted.org/packages/43/1e/eb87bf0c3ea80fc129d017b6360f37fd1ee57c3c4073de1482650ff438b3/simpledns-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8772a15fa4556a42cfcba379b28d4d7e", "sha256": "dd0933eb5d5933a2be123fffabfc3c9c1889de7fc52660e873c8763ba068aaf5" }, "downloads": -1, "filename": "simpledns-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8772a15fa4556a42cfcba379b28d4d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14458, "upload_time": "2015-04-29T00:58:09", "url": "https://files.pythonhosted.org/packages/34/cb/78bdb547cd20cabbcb863bea5f3c9d64fdfce5f22acf2c2628abf51977a5/simpledns-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c82c5c019b0c9693c0c373e6e2d33fec", "sha256": "83a661afccb531c9d98f8a76a21ee42a9d80ffd2159b1709633551b0942b356c" }, "downloads": -1, "filename": "simpledns-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c82c5c019b0c9693c0c373e6e2d33fec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 64219, "upload_time": "2015-11-23T05:38:10", "url": "https://files.pythonhosted.org/packages/c9/21/151f92631dd9d454fa74fe380508369bf654016a17c3e6c179554edf65a4/simpledns-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c82c5c019b0c9693c0c373e6e2d33fec", "sha256": "83a661afccb531c9d98f8a76a21ee42a9d80ffd2159b1709633551b0942b356c" }, "downloads": -1, "filename": "simpledns-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c82c5c019b0c9693c0c373e6e2d33fec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 64219, "upload_time": "2015-11-23T05:38:10", "url": "https://files.pythonhosted.org/packages/c9/21/151f92631dd9d454fa74fe380508369bf654016a17c3e6c179554edf65a4/simpledns-0.1.4.tar.gz" } ] }