Home > DNS Catch-all for OpenID

DNS Catch-all for OpenID

February 20th, 2007

We were trying to get our OpenID server working today, and we found that we needed to make a catch-all DNS entry to do it. That way, things like hank.myopenid.url would work. Here’s one way to do it:


*.yourdomain.com. IN A 111.111.111.111

But, we ended up using a CNAME instead:


UPDATE ADD *.yourdomain.com. 86400 IN CNAME yourdomain.com

Then in your Apache virtual hosts directive add a wildcard alias like this


ServerAlias *.yourdomain.com

Incredible.


, ,

  1. February 20th, 2007 at 20:25 | #1

    As I understand the problem is not the OpenID server but the security for cookies, I think that if you were using path like myopenid.url/hank there should be no problem. What was the problem you were facing? (nice DNS tip)

  1. No trackbacks yet.
Comments are closed.