Results 1 to 7 of 7

Thread: DNS wildcard ?

  1. #1
    Join Date
    Mar 2004
    Posts
    250

    DNS wildcard ?

    I want that anything that goes to my domain like:

    www.mydomain.com
    wwwwww.mydomain.com
    asdf.mydomain.com

    Be responded to the same mydomain.com.

    My DNS records looks like:

    mydomain.com 86400 IN A 204.14.108.240
    *.mydomain.com 86400 IN A 204.14.108.240

    I see the "*" and I though that was like a wildcard.
    However, the domain is not responding as I would expected. Any entry different than "mydomain.com" and "www.mydomain.com" goes to a "Directory Listing Denied" error.

    I think the "www" does work because I see in my control panel I have setup an "alias" for mydomain.com to www.mydomain.com. Though, I don't know what this "alias" (hsphere panel) means in more technical terms.

  2. #2
    Join Date
    Oct 2006
    Location
    Jupiter, FL
    Posts
    340
    For WildCard DNS you can just add an A record or CNAME of

    * IN A x.x.x.x

    Then you need to edit the Apache Config (httpd.conf) and replace:

    ServerAlias domain.tld

    With

    ServerAlias *.domain.tld

  3. #3
    Join Date
    Mar 2004
    Posts
    250
    Quote Originally Posted by hostnine
    For WildCard DNS you can just add an A record or CNAME of
    * IN A x.x.x.x
    Ok, I'll do that. Does it matter if I have more than one different domains in the same IP using host headers (Win IIS) ?


    Quote Originally Posted by hostnine
    Then you need to edit the Apache Config (httpd.conf) and replace:
    ServerAlias domain.tld
    With
    ServerAlias *.domain.tld
    What's the equivalent of that in Windows IIS ?
    I tried to add a host header as "*.mydomain.tld", but it didn't allow me to do so.

  4. #4
    Join Date
    Oct 2006
    Location
    Jupiter, FL
    Posts
    340
    Sorry,

    Didn't realize you were using IIS

    Does this help: http://msmvps.com/blogs/bernard/arch.../22/39218.aspx

  5. #5
    Join Date
    Mar 2004
    Posts
    250
    Definitely it is not a problem with the DNS records, I have other websites working fine with the same config. This is related to IIS.
    I see that if I create "ww" or "wwww" as host headers, then the domain responds fine. So, it is a matter of config IIS to respond to all the wildcards.
    But, how ? Well, I hope the answer is in that link, I'll take a look.
    Thanks!

  6. #6
    Join Date
    Jun 2002
    Location
    Waco, TX
    Posts
    5,291
    You just need to assign a dedicated IP to domain in hsphere to get what you are wanting it will then work exactly as you expect

    The IIS equiv to a * is a blank entry for the IP in the Host Headers.

  7. #7
    Join Date
    Mar 2004
    Posts
    250
    Yessss !!
    That's did it !

    Thanks a lot !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •