xip.name

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: BSD-2-Clause Imports: 11 Imported by: 0

README

xip.name

GoDoc License BSD

A simple wildcard DNS inspired by xip.io

        10.0.0.1.xip.name  resolves to  10.0.0.1
    www.10.0.0.2.xip.name  resolves to  10.0.0.2
    foo.10.0.0.3.xip.name  resolves to  10.0.0.3
bar.baz.10.0.0.4.xip.name  resolves to  10.0.0.4

        10-0-0-5.xip.name  resolves to  10.0.0.5
    www.10-0-0-6.xip.name  resolves to  10.0.0.6

How does it work?

xip.name runs a custom Domain Name Server which extracts any IP address found in the requested domain name and sends it back in the response.

Does it cost anything to use xip.name?

No, but you are welcome to donate if you find the service useful.

Bitcoin: 16f4vuZcpybd7rfprjB6Ki87BNVbtMA1M5

You can also help out by signing up to DigitalOcean using my referral link.

Credits

xip.name is built on top of Miek’s lovely dns package for Go.

Lars Wilhelmsen made some tiny improvements and added a Dockerfile to produce an Alpine-based image hosting xip and website (on nginx) + support for configurating xip via environment variables.

Documentation

Overview

xip.name is a small name server which sends back any IP address found in the provided hostname.

When queried for type A, it sends back the parsed IPv4 address. In the additional section the client host:port and transport are shown.

Basic use pattern:

dig @xip.name foo.10.0.0.82.xip.name A

; <<>> DiG 9.8.3-P1 <<>> @xip.name foo.10.0.0.82.xip.name A
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13574
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;foo.10.0.0.82.xip.name.		IN	A

;; ANSWER SECTION:
foo.10.0.0.82.xip.name.	0	IN	A	10.0.0.82

;; ADDITIONAL SECTION:
xip.name.		0	IN	TXT	"Client: 188.126.74.76:52575 (udp)"

;; Query time: 27 msec
;; SERVER: 188.166.43.179#53(188.166.43.179)
;; WHEN: Wed Dec 31 02:55:51 2014
;; MSG SIZE  rcvd: 128

Initially based on the reflect example found at https://github.com/miekg/exdns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL