Friday, March 14, 2008

DNS Hell

Recently, I bought a second domain name. I already owned kendallsofcanton.com and I wanted to also run my new domain (HackersAre.us) on the same web server. I fumbled –around for about 2 days on the internets, damning them at every step of the way for being totally useless, trying to get both of these sites hosted on the same server.

I thought the problem was my Apache webserver. I tried many iterations of code that I thought might work in order to get both of the sites running on virtual hosts. In the end, it turned-out to be the Ahost pointer wasn’t set to my IP address in the DNS server over at GoDaddy. Why they wouldn’t remind me about that instead of sending me ads to buy crap hosting plans that I don’t need I have no clue.

I’m totally pissed how over-complicated the GoDaddy UI is. It pisses me off how many irrelevant ads are on there and how when I log into my account, their site takes me to their store instead of my domain admin section. If I wanted to buy something, I would ask for it. Also, the options in the domain admin section that don’t really do anything (subdomains). What the hell is up with that? At one point in this whole ordeal, I was so pissed that I actually broke my keyboard and hurt my hand simultaneousy. It's definitely good that I always have like 20 spares on hand. [/rant]

For those of you wondering how I was able to get the two sites up and running after the little GoDaddy row, here’s what my %apache config folder%/extra/vhosts.conf file looks like for Apache 2.2.

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin jfekendall@gmail.com
DocumentRoot "S:/dotcom/kendall"
ServerName kendallsofcanton.com
ServerAlias *.kendallsofcanton.com
</VirtualHost>

<VirtualHost *:80>
ServerAdmin jfekendall@gmail.com
DocumentRoot "S:/dotcom/hackersareus"
ServerName hackersare.us
ServerAlias *.hackersare.us
</VirtualHost>

An added benefit to this is that the sites can't be pinged, yet the content can be viewed. ***Spooky*** DDoS attack tolerant!

Now if I can only figure out how to get actual subdomains working, I would be in business. That’s more crap to sort-out with GoDaddy and their aweful DNS administration tools. If I was a man of means, I wouldn’t be bitching like this. I would have my own DNS server and a big enough pipe to drive a truck through.