answer dns queries with fixed IP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
MANIFEST
Makefile
README
dnsreflector.1
dnsreflector.c
dnsreflector.h
log.c

README

The dnsreflector daemon listens for DNS queries on a local UDP port and
answers with records pointing back to localhost. Combined with pf(4) this
works as a bandwidth efficient spamtrap.

This program was written and tested with OpenBSD. If you are interested
in running dnsreflector on another platform, please contact me.


Installation
============

make
make install


PF Setup
========

table <spamd> persist
rdr inet proto udp from <spamd> to any port 53 -> 127.0.0.1 port 53000


Usage
=====

dnsreflector [-d] [-a address] [-p port] [-i ip]

-d           Run as daemon in the background
-a address   Bind to this address (default: 127.0.0.1)
-p port      Bind to this port (default: 53000)
-i ip        Answer with this IP instead of 127.0.0.1


Homepage
========

You can always find the latest version of dnsreflector at:

    http://www.wolfermann.org/dnsreflector.html