Skip to content
/ ipdns Public
forked from 0-complexity/ipdns

Stateless dns server serving ip addresses based on parsing the domain

License

Notifications You must be signed in to change notification settings

xmonader/ipdns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipdns

Stateless dns server serving ip addresses based on parsing the domain

description

ipdns takes the domain and calculates an IPAddress out of it.

The domain names should be formatted as follows:

mylittleserver-2130706433.mydomain.ext

ipdns will serve 127.0.0.1 as a result, because ipdns parsed the number 2130706433, which represents the ip, in the domain from its decimal representation in the more familiar IPv4 string format.

installation

sudo pip install ipdns

running ipdns

ipdns is witten as a twistd plugin. See https://twistedmatrix.com for more information on Twisted and the twistd daemon.

parameters

ipdns only needs one parameter which can only passed on the command line.

Usage: twistd [options] ipdns [options]
Options:
-d, --domain=    The top domain serving ipdns for. (required)
-s, --server=    DNS for this mail server. (required)
-e, --email=     Email address of domain admin. (required)
-n, --nsrecords= NS records for the hosted domain. Eg: ns1:94.23.35.208,ns2:37.187.30.26 (required)
    --version    Display Twisted version and exit.
    --help       Display this help and exit.

Use the following command to make ipdns serve ipaddresses for yourdomain.foo:

twistd ipdns --domain=yourdomain.foo --server=yourdnsserver.domain.name --email=john@foo.com --nsrecords=ns1:94.23.35.208,ns2:37.187.30.26

About

Stateless dns server serving ip addresses based on parsing the domain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%