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.
- Host: GitHub
- URL: https://github.com/notyusheng/local-python-dns-server
- Owner: NotYuSheng
- Created: 2024-07-23T13:49:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T14:52:08.000Z (almost 2 years ago)
- Last Synced: 2025-08-22T20:03:01.839Z (10 months ago)
- Topics: dns-server, docker, python
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)