Skip to content

igorsobreira/wildcard_dns_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wildcard_dns_proxy

This is a proxying DNS server that supports wildcards in /etc/hosts. It's not written by Real Geeks, we are just hosting it here to make it easier to install from scripts and stuff.

Credits

This script is written by Marlon Yao (yaolei135@gmail.com)

#Installation

python setup.py install

If you're on Archlinux, I made a package for you: https://aur.archlinux.org/packages.php?ID=63851

You will need to add localhost as your DNS server in /etc/resolv.conf

Usage

Edit /etc/hosts, add:

    127.0.0.1 *.local
    2404:6800:8005::62 *.blogspot.com

start up dnsproxy(here we use Google DNS server as delegating server):

$ sudo python dnsproxy.py -s 8.8.8.8

Then set system dns server as 127.0.0.1, you can verify it by dig:

$ dig test.local

The result should contain 127.0.0.1.

License

This project is licensed under the BSD License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%