BohdanLevchenko / nano-ddns

Plain and dead-simple dynamic DNS server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nano-ddns

Plain and dead-simple dynamic DNS server

Building

make clean
make

Usage

Usage of ddns.windows_386.exe:
  -database string
        Database file (default "db.json")
  -dns-address string
        DNS Address to listen to (TCP and UDP) (default ":5354")
  -http-address string
        HTTP Address to listen to (default ":8080")
  -update-url string
        URL for updating ddns info (default "/updateip.php")

Example

ddns.windows_386.exe -dns-address=":5353" -http-address=":8080"
curl -XGET 'localhost:8080/updateip.php?modem=100&ip=192.168.1.100'
dig @localhost -p 5353 modem100. A

; <<>> DiG 9.8.3-P1 <<>> @localhost -p 5353 modem100. A
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5183
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;modem100.			IN	A

;; ANSWER SECTION:
modem100.		0	IN	A	192.168.1.100

;; Query time: 0 msec
;; SERVER: ::1#5353(::1)
;; WHEN: Wed Feb 22 14:10:55 2017
;; MSG SIZE  rcvd: 50

About

Plain and dead-simple dynamic DNS server

License:Apache License 2.0


Languages

Language:Go 72.2%Language:Makefile 27.8%