Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    29

    Default DNS Wildcard?

    Is there anyway I can enter a wildcard like * or . which I can make a CNAME to the main URL meaning I can type anything.url.com?

    Thanks in advanced,
    Millar.

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    *.domain.com. 14400 IN CNAME domain.com.

  3. #3
    aisagtr
    Guest

    Default

    Pardon me but under cpanel, shouldn't it just be:

    * 14400 IN CNAME domain.com.

    I tried both and it went thru without giving any error.

    Please advise.

  4. #4
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by aisagtr View Post
    Pardon me but under cpanel, shouldn't it just be:

    * 14400 IN CNAME domain.com.

    I tried both and it went thru without giving any error.

    Please advise.
    You have to edit httpd.conf and add *.domain.com at ServerAlias :
    It's me ...... It's me ......

  5. #5
    Member fenixer's Avatar
    Join Date
    Feb 2007
    Posts
    92

    Question

    Hello..

    Nowadays, if you manually put into serveralias this wildcard, it will be deleted when recompiling Apache at any time, or just executing "/usr/local/cpanel/bin/build_apache_conf"... doesn't matter you have distilled before.

    This can be considered a bug?
    ---

    Kind Regards.
    Gino.... IT Hosting Fenixer
    www.fenixer.es
    www.manuales.fenixer.es

  6. #6
    Member fenixer's Avatar
    Join Date
    Feb 2007
    Posts
    92

    Default

    Nobody can confirm???
    do you think it is a good idea to publish at bugzilla?

    thanks.
    ---

    Kind Regards.
    Gino.... IT Hosting Fenixer
    www.fenixer.es
    www.manuales.fenixer.es

  7. #7
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    Quote Originally Posted by fenixer View Post
    Nobody can confirm???
    do you think it is a good idea to publish at bugzilla?

    thanks.
    It's not a bug, it's the new way of cpanel handle httpd.conf

    If you use the search feature in this forum, you will saw a lot of thread that discuss this matter, like example : http://forums.cpanel.net/showthread.php?t=71049 and http://forums.cpanel.net/showthread.php?t=73899
    It's me ...... It's me ......

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2003
    Location
    Gothenburg, Sweden
    Posts
    323

    Default

    Quick Wildcard Setup for One virtualhost


    Code:
    mkdir -p /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/
    echo "ServerAlias *.<domainname>" >> /usr/local/apache/conf/userdata/std/2/<username>/<domainname>/wildcard.conf
    /scripts/ensure_vhost_includes --user=<username>
    /scripts/restartsrv httpd

    replace <username> and <domainname> with the username and domain of the customer/domain.

    Don't forget to add the wildcard entry in the zonefile for the domain
    * IN CNAME domainname.com.

    twitter: oderland_david

  9. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If it's for a user owned domain, one can also add it as a subdomain with the document root being /home/user/public_html

  10. #10
    Registered User
    Join Date
    Jan 2008
    Posts
    4

    Default

    Quote Originally Posted by cpanelkenneth View Post
    If it's for a user owned domain, one can also add it as a subdomain with the document root being /home/user/public_html
    Belive it or not i didnt understand this untill i found the solution myself .

    Login to the cpanel account owning the domain, go to subdomain,
    then add the subdomain *
    Cpanel autofills /public_html/ as document root. if thats where the domain is then your set to go.
    if not then write where this specific wildcard should point to.
    in case you added it manualy to either httpd.conf and/or the DNS zone then go to those 2 places and change/remove the * from there to look like they were before you manualy edited them.

Similar Threads & Tags
Similar threads

  1. DNS wildcard for all sites
    By comeran in forum New User Questions
    Replies: 6
    Last Post: 11-26-2008, 04:42 PM
  2. Wildcard DNS ?
    By lgabi in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-05-2007, 11:04 PM
  3. Wildcard DNS
    By Roberto in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 12-13-2005, 12:43 PM
  4. Wildcard DNS?
    By Omar in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-29-2003, 08:30 AM
  5. DNS Wildcard
    By Steven_K in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-24-2003, 12:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube