Creating a wildcard DNS entry with GoDaddy

Discussion in 'Site & Server Administration' started by ThatForumPlace, Apr 22, 2007.

  1. #1
    I'm trying to set up a wildcard DNS entry through my host GoDaddy.com - basically so that http://anyname.domain.com/ resolves to my IP address, where anyname could be anything that was dynamically created (site will have many subdomains).

    I've tried variations for both a plain cheap and cheerful hosting account, as well as for a Virtual Dedicated Server, but can't seem to get it to work.

    Has anyone managed to achieve what I'm trying to do? Specifically, should I be creating/altering an entry for A Name, or CName or what? What should the entry be? * alone isn't accepted unfortunately.

    Any help or tips are greatly appreciated,
     
    ThatForumPlace, Apr 22, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Creating an A name with *.domain.com. worked for me.
     
    rodney88, Apr 24, 2007 IP
    ThatForumPlace likes this.
  3. ThatForumPlace

    ThatForumPlace Peon

    Messages:
    201
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did that as well, but then when I go to http://testboard.domain.com I get a 403 Forbidden error.

    I've tried both the following entries:

    * points to IP address
    *.domain.com. points to IP address

    Could one be conflicting with the other?
    should the second entry (*.domain.com.) not have a period on the end?

    Thanks,
     
    ThatForumPlace, Apr 24, 2007 IP
  4. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If its your server giving you the 403 error then its working - all the wildcard DNS will do is point requests for *.domain.com to your server. If you get a server not found error then the wildcard isn't working.

    If you want the server to then treat *.domain.com the same as domain.com, you should add another serveralias in the httpd.conf under the virtualhost section for the domain.

    ServerAlias *.domain.com
     
    rodney88, Apr 24, 2007 IP