The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Zone Temlate edit In cPanel servers for Wild card entries

Discussion in 'General Discussion' started by minosjl, Mar 10, 2012.

  1. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello All,

    Is it possible to change the zone template of cpanel, in order to get the wildcard entry for all newly created domains in WHM ?

    Thank you.
     
  2. minosjl

    minosjl Well-Known Member

    Joined:
    Jun 4, 2011
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello All,

    I have managed to add the wildcard entries for all newly created domains by adding the following line in the zone template

    *.%domain%. IN A %ip%
     
  3. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    You would also need to add a wild card ServerAlias to each VirtualHost for each site or else every *.domain.tld is going to see your main site.

    Thanks!
     
Loading...

Share This Page