An open API service indexing awesome lists of open source software.

https://github.com/notyusheng/local-python-dns-server

Dockerized local DNS server implemented in Python.
https://github.com/notyusheng/local-python-dns-server

dns-server docker python

Last synced: 2 months ago
JSON representation

Dockerized local DNS server implemented in Python.

Awesome Lists containing this project

README

          

# Local Python DNS Server

Dockerized simple local DNS server implemented in Python.

## Host requirement(s)
- **Docker**: [[Installation Guide](https://docs.docker.com/engine/install/)]
- **Docker Compose**: [[Installation Guide](https://docs.docker.com/compose/install/)]

## Configuration
The domain-to-IP mappings are defined in the `config.json` file. Update this file with your desired mappings:
```
{
"a.com.": "192.168.1.100",
"b.com.": "192.168.1.101"
}
```

## Usage
1. Clone this repository and navigate to project folder
```
git clone https://github.com/NotYuSheng/Local-Python-DNS-Server.git
cd Local-Python-DNS-Server
```

2. Build the Docker images:
```
docker-compose build
```

3. Run images
```
docker-compose up
```

## Acknowledgement(s)
- [Hackernoon - How to Set Up a Local DNS Server With Python](https://hackernoon.com/how-to-set-up-a-local-dns-server-with-python)