{ "info": { "author": "evlion@qq.com", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "===========\nLocal CNAME\n===========\n\n.. image:: https://img.shields.io/pypi/v/local-cname.svg\n :target: https://pypi.python.org/pypi/local-cname\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/status/local-cname.svg\n :target: https://pypi.python.org/pypi/local-cname\n :alt: Development Status\n\n.. image:: https://img.shields.io/pypi/pyversions/local-cname.svg\n :target: https://pypi.python.org/pypi/local-cname\n :alt: Python Versions\n\n.. image:: https://img.shields.io/pypi/l/local-cname.svg\n :target: https://github.com/hjacobs/local-cname/blob/master/LICENSE\n :alt: License\n\nThis is a little helper script to emulate a local CNAME DNS by writing to ``/etc/hosts``.\nDNS changes (e.g. to rollout new services) can be tested by overwriting DNS names in the local ``/etc/hosts`` file.\nThe hosts file only supports IP addresses thus making it cumbersome to emulate a DNS ``CNAME`` without a local DNS server/proxy.\nThe ``local-cname`` is a very small script to automatically lookup DNS names and write IP addresses to the hosts file.\nIt is self-contained and restores your local ``/etc/hosts`` file on exit (press CTRL+C).\n\nInstallation:\n\n.. code-block:: bash\n\n $ sudo pip install -U local-cnames\n\nUsage:\n\n.. code-block:: bash\n $ cat /etc/cnames\n google.com=duckduckgo.com\n\n $ sudo local-cnames\n # press CTRL+C to cancel and restore your old /etc/hosts\n\nExample:\n\n.. code-block:: bash\n $ cat /etc/cnames\n google.com=duckduckgo.com\n\n $ sudo local-cnames\n $ ping google.com\n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/evlon/local-cname", "keywords": "dns hosts local", "license": "GNU General Public License v3 (GPLv3)", "maintainer": "", "maintainer_email": "", "name": "local-cnames", "package_url": "https://pypi.org/project/local-cnames/", "platform": "", "project_url": "https://pypi.org/project/local-cnames/", "project_urls": { "Homepage": "https://github.com/evlon/local-cname" }, "release_url": "https://pypi.org/project/local-cnames/0.4/", "requires_dist": [ "clickclick" ], "requires_python": "", "summary": "Helper script to emulate a local CNAME DNS by writing to /etc/hosts", "version": "0.4" }, "last_serial": 5109889, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "e125aeff4c8cb4577a00e8f4cd7c7f8c", "sha256": "1c1021767c69414e7105895fe75a4d3752784c31633702037872fe723732ac5e" }, "downloads": -1, "filename": "local_cnames-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e125aeff4c8cb4577a00e8f4cd7c7f8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3319, "upload_time": "2019-04-07T12:57:09", "url": "https://files.pythonhosted.org/packages/e4/3f/56e4f5540e0b0e840bb4bda79d8d8848e7118716cd36269700948b02e9dd/local_cnames-0.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e125aeff4c8cb4577a00e8f4cd7c7f8c", "sha256": "1c1021767c69414e7105895fe75a4d3752784c31633702037872fe723732ac5e" }, "downloads": -1, "filename": "local_cnames-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e125aeff4c8cb4577a00e8f4cd7c7f8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3319, "upload_time": "2019-04-07T12:57:09", "url": "https://files.pythonhosted.org/packages/e4/3f/56e4f5540e0b0e840bb4bda79d8d8848e7118716cd36269700948b02e9dd/local_cnames-0.4-py3-none-any.whl" } ] }