Live data from Hacker News

Xip.io - a magic domain name that provides wildcard DNS for any IP address

xip.io

111–120 of 128 posts

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#111
You guys are missing the point. It's intended to be used with Pow. This way you don't have to bother with manually starting & stopping servers or remembering ports or whatever. This domain allows you to have access your sites in the same way from any device in your network. Not just your dev machine. Handy! And it works. What's not to like then?

http://37signals.com/svn/posts/3191-announcing-pow-040-with-...

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#113

This is a hack for devices where the user cannot access /etc/hosts? Running a local DNS server on these devices is also not possible? Can a user access ifconfig and change interface settings, e.g. adding an alias? In terms of networking, these devices appear to be crippled. Yet they do not have to be if they're built using code from BSD's.

It is a sad day when "solutions" like these xip.io is necessary for something that our general computing devices are already equiped with and capable of since the 80ies.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#114
post #103
post #82

I have a dd-wrt router with DNSmasq functioning as the DNS server for local hosts. DNSmasq resolves external domains using Google DNS (8.8.8.8/8.8.4.4). With this setup, domain names like 192.168.X.X.xip.io and 127.X.X.X.xip.io won't resolve, and I believe there is something wrong with my DNSmasq setup. Anyone else ran into similar issues? (Update) Problem solved by myself. The DNSmasq config has stop-dns-rebind opti…

Or you can add rebind-domain-ok=xip.io to dnsmasq.conf. Not that I would do that myself, as I still don't see what value it provides.

Thanks for this tip! I guess this is more secure than just opening up all rebind from the wild.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#115
post #58

Earlier quoted context omitted.

[deleted]

(The author of the software wrote a comment here: "So you're just here to shit on things?", which he has since deleted.) I genuinely and honestly cannot log into your Gandi account and fix your nameserver delegation, so that means I'm just here to shit on things? That's a logical leap for you? You are delegating xip.io to a nameserver that is refusing queries for your zone; that's seriously broken and can result in r…

> You wrote a poor DNS server. Read the spec, study BIND's or NSD's source to understand the years of work that went into this before you, and understand the problems I've pointed out.

Why? xip.io exists and works. If he had to read hundreds of pages of technical specs or thousands of lines of source to implement it, it wouldn't exist.

Feel free to make your own spec-compliant or better-working version though; Sam's done the same for RVM, and I'm sure he wouldn't have any problem with better software existing.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#116

Earlier quoted context omitted.

You're right. I'm probably just running xip.io to steal all your sensitive development-mode form data!

Information you have access to: External ip addresses of requestees. Internal ip addresses of requestees. To some, this is very useful...

Can you be specific instead of "to some?"

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#118

Earlier quoted context omitted.

I find it interesting that we are required to do a second round-trip for the CNAME when it is available in the same bailiwick and could be sent as part of either the ADDITIONAL SECTION or as part of the ANSWER SECTION. Would you happen to know what the RFC has to say on this? I understand that CNAME's are not allowed to exist with other records, but returning it in the ADDITIONAL SECTION shouldn't be a cause for conc…

Once a CNAME exists for a name, no record of any other type may exist for that same name (it's an override for all types). But for a query like this, a server is allowed to return both a CNAME and its relevant target(s) ... as long as they are within-bailiwick. It can go right into the answer section, e.g.; % dig example.allcosts.net @ns-22.awsdns-02.com. ... ;; ANSWER SECTION: example.allcosts.net. 300 IN CNAME at.a…

Ah, here is where implementation becomes important... not all of the authoritative DNS servers I have tested actually have this behaviour. So far I have found that BIND and tinydns don't send the A record even-though it is in bailiwick for the CNAME.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#119

Earlier quoted context omitted.

Once a CNAME exists for a name, no record of any other type may exist for that same name (it's an override for all types). But for a query like this, a server is allowed to return both a CNAME and its relevant target(s) ... as long as they are within-bailiwick. It can go right into the answer section, e.g.; % dig example.allcosts.net @ns-22.awsdns-02.com. ... ;; ANSWER SECTION: example.allcosts.net. 300 IN CNAME at.a…

In fact, returning both the CNAME and the A in the initial response is required. Returning just the CNAME and setting NOERROR tells a recursor 'the target name exists but I do not have an A record for it'. Luckily, all recursors I am aware of are stubborn and will then ask for the A anyway.

Even if it is required, some authoritative DNS server implementations don't, so far I have found BIND that came with FreeBSD 8.0 doesn't, nor does tinydns.

So recursors would have to account for possibly broken implementations and try the query anyway.

Re: Xip.io - a magic domain name that provides wildcard DNS for any IP address

#120
post #112

This is pretty handy until were all switched over to IPv6 and we'll need to "to solve the problem once and for all" again.

Isn't the idea of IPv6 that we have plenty of addresses. Thus it wouldn't (read: shouldn't) be hard to get another address bound to your virtual host.

In fact doesn't the whole idea of binding multiple sub-domains to the same IP address (on the same port) kind of go by the wayside when it's free/cheap/not-going-to-blow-up-the-internet to get another IP?

Post reply on HN