2025-11-16 22:35:37 +01:00
2025-07-20 11:41:35 +02:00
2025-07-20 11:30:32 +02:00
2025-08-16 02:40:06 +02:00
2025-08-16 02:40:06 +02:00
2025-07-11 23:53:11 +02:00
2024-12-16 23:54:15 +01:00
2024-12-16 23:54:15 +01:00
2023-06-30 15:40:33 +02:00

rdns-go

rdns is a reverse DNS proxy resolver written in Go. It acts as a DNS server, forwarding DNS queries to configured nameservers and returning the corresponding reverse DNS records.

Building

To build the rdns-go project, you need to have Go installed. Follow the official Go installation instructions for your operating system.

Once Go is installed, clone the rdns-go repository:

git clone https://git.rznet.fr/razian/rdns-go
cd rdns-go

Build the rdns binary:

go build

This will create a rdns binary in the project directory.

Usage

The rdns-go project can be started using the provided docker-compose.yml file. Modify the environment variables in the docker-compose.yml file to customize the configuration.

docker-compose up -d

This command will start the rdns-go container in the background.

Configuration

The rdns-go project can be configured using the following command arguments:

  • -b (default: /etc/rdns/blocklist.txt): The path to the blocklist file. This file contains a list of domain names to block.
  • -z (default: /etc/rdns/rdns.zones): The path to the zones file. This file contains custom zone information.
  • -h (default: /etc/rdns/hosts): The path to the hosts file. This file contains custom hosts and can be used as a network wide /etc/hosts file.
  • -n (default: 9.9.9.9:1.1.1.1): The nameservers to use for DNS resolution.
  • -t (default: 60): The time-to-live value for cached queries (in minutes).
  • -s (default: true): Whether to use TLS to contact the resolver.
  • -l (default: false): Whether to enable query logging.
  • -m (default: false): Whether to enable Prometheus metrics.

Acknowledgments

This project uses code from miekg/dns and patrickmn/go-cache.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Description
Simple DNS proxy with blocklist, cache and custom zones handling
Readme MIT 17 MiB
v1.3 Latest
2025-08-13 20:51:40 +00:00
Languages
Go 93.7%
Shell 4.1%
Dockerfile 2.2%