xip.name

command module
v0.0.0-...-8329dd8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: BSD-2-Clause Imports: 8 Imported by: 0

README

xip.name

The service was shut down on 2021-05-17 after Google marked the entire domain as “Social engineering content” since (working as intended) you could link to for example http://1.1.1.1.xip.name/ and getting redirected to http://1.1.1.1/

Build Status GoDoc License BSD

A simple wildcard DNS inspired by xip.io (which seems to have been shut down now)

        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

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.

Credits

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

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