Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xerr0r/fritzbox-rdns
Reverse DNS server for Fritzbox
https://github.com/0xerr0r/fritzbox-rdns
dns fritz-box fritzbox rdns
Last synced: 16 days ago
JSON representation
Reverse DNS server for Fritzbox
- Host: GitHub
- URL: https://github.com/0xerr0r/fritzbox-rdns
- Owner: 0xERR0R
- Created: 2022-08-27T21:31:49.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T10:48:56.000Z (5 months ago)
- Last Synced: 2024-10-11T02:29:28.538Z (about 1 month ago)
- Topics: dns, fritz-box, fritzbox, rdns
- Language: Go
- Homepage:
- Size: 99.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reverse DNS server for Fritzbox
This is a DNS server which fetches periodically network device information (Device name and IPv4+IPv6 addresses) from the Fritzbox web ui and provides device name for reverse DNS (PTR) queries. Works for IPv4 and IPv6 addresses. This tool can be configured als rDNS lookup in [blocky](https://github.com/0xERR0R/blocky) or AdguardHome.
## How to install
You can start this server as docker container with following `docker-compose.yaml` file
```yaml
version: "2.1"
services:
fritzbox-rdns:
container_name: fritzbox-rdns
image: ghcr.io/0xerr0r/fritzbox-rdns:latest
restart: unless-stopped
environment:
- "FB_URL=http://192.168.178.1"
- "FB_USER=username"
- "FB_PASSWORD=passw0rd"
- "FB_REDIS=redis:6379"
- "FB_LOG_LEVEL=info"
ports:
- "53:53/udp"
redis:
image: redis
restart: unless-stopped
command: redis-server --save 120 1 --loglevel warning
volumes:
- redis_data:/data
volumes:
redis_data:
```## How to test
To resolve the hostname from 192.168.178.3, please execute (change host and port accordingly)
```sh
dig @host -p 53 -x 192.168.178.3
```This should return something like:
```
;; ANSWER SECTION:
3.178.168.192.in-addr.arpa. 300 IN PTR laptop.
```