Question about adding sites and domains

Discussion in 'General' started by ngdm, May 10, 2016.

  1. ngdm

    ngdm New Member

    Hi.
    I'm building a server to host both my sites. I know that getting a hosting package would be easier, but I'm not interested in easy, I want to learn.
    I've created zones for both sites, but when I open the Sites tab, I can't create a new site. There's nothing showing up in the domain drop down, and anything I type in that field disappears when I save. I'm pretty sure there's a step I'm missing, but I don't have the documentation and can't get it just now, so I've no idea what I'm doing wrong.
    The zone files were generated by ISPConfig, so I'm pretty sure they're right,
    Here's the zone file for one of the domains:
    <code>
    ; Zone file for nomadicgeekery.com
    @ 100 IN SOA dns1.nomadicgeekery.com. admin.nomadicgeekery.com. (
    2014011503 ; serial, todays date+todays
    28800 ; refresh, seconds
    7200 ; retry, seconds
    360000 ; expire, seconds
    86400 ) ; minimum, seconds

    ; DEFINE NS RECORDS
    dns1.nomadicgeekery.com. 100 IN A
    dns2.nomadicgeekery.com. 100 IN A
    nomadicgeekery.com. 100 IN NS dns1.nomadicgeekery.com.
    nomadicgeekery.com. 100 IN NS dns2.nomadicgeekery.com.

    ; A RECORDS
    nomadicgeekery.com. 100 IN A
    d.nomadicgeekery.com. 100 IN A
    mail.nomadicgeekery.com. 100 IN A

    ; MX RECORDS
    nomadicgeekery.com. 100 IN MX 0 mail.nomadicgeekery.com.

    ; CNAME RECORDS
    imap 100 IN CNAME mail.nomadicgeekery.com.
    smtp 100 IN CNAME mail.nomadicgeekery.com.
    www 100 IN CNAME nomadicgeekery.com.

    ; TXT/SPF RECORDS
    nomadicgeekery.com. 14000 IN TXT "v=spf1 a mx ~all"
    nomadicgeekery.com. 14000 IN SPF "v=spf1 a mx ~all"
    nomadicgeekery.com. 14000 IN TXT "google-site-verification=[google sv key]
    mail._domainkey 14000 IN TXT ( "v=DKIM1; k=rsa; " p="[mail key]"
    </code>
     
  2. sjau

    sjau Local Meanie Moderator

    zone files are different from websites. You may want to host dns zone files on the server but not hosting websites there... or vice versa.

    In the "Domain" field just enter the domain name or fqdn that you wanna have there. E.g. if you want to host "www.domain.tld" then just put in "domain.tld" select as auto-subdomain "www".

    However if you want to host another subdomain in a different vhost, the add a new site and add as domain name something like "blog.domain.tld"
     
  3. ngdm

    ngdm New Member

    Thanks for the reply. When I type the domain into that space and click Save it returns errors saying "Domain is empty." There's a drop down menu there but it's empty
     
  4. sjau

    sjau Local Meanie Moderator

    what ispc version?
     
  5. ngdm

    ngdm New Member

    It's 3.0.5.4p9, running on Debian Jessie
     
  6. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You can disable the domain-module (main-config/domains) or create the domain on client/domains. afterwards you can create the web- and maildomain
     
  7. ngdm

    ngdm New Member

    Thanks Florian! I added myself as a client and was able to add the domains through the domains link on the client page. I feel silly having missed that when I was poking around. Problem solved. Thanks again.
     

Share This Page