I installed ISPCONFIG3 on centos 6.2 using the great guide on howtoforge.com. Everything is up and running and I can access ISPCONFIG via a browser. However I am not sure how to move forward with the initial setup so I can setup the very first account and get my website live.
Details:
- Only have 1 server, the centos+ispconfig is running on a virtual machine of XEN XCP. I setup the server name to be server1.mydomain.com.
- I only have 2 usable ips. I plan to use them as follows:
- xx.xx.xx.01 : For my website and the websites of all accounts I add.
- xx.xx.xx.02 : For ns1.mydomain.com and ns2.mydomain.com (Yea I know they should be different ips at different locations, but this is what I have to work with at the moment.... )
- I registered the nameservers at my registrar with the .02 ip.
- I want to use bind and ISPconfig to run the DNS on my server itself and not via my registrar.
Note:
I am figuring that since I only have 1 server that everything will be one... there is no point on wasting a usable IP for a namesever.... should I setup my server1.mydomain.com + ns1.mydomain.com + ns2.mydomain.com to be on the same IP or will this not work?
Right now if I go to the .01 IP it shows the centos+apache successful install page.
So to break it down basically I am not sure where to start when it comes to: (What to consider and what to do to setup the first domain on the server)
- Telling bind to use the name server domains with .02.
- Setting up my First website(which will be my main website) in ISPconfig so mydomain.com resolves properly to my server.
- Make it so when you go to the .01 IP, it either redirects or shows the contents of my main website. (If this can't be done, then any advice is appreciated)
- Making sure that when I add a new domain, it automatically puts in the proper information for the domain so it points to the right mail, database, dns, entry.
If I overlooked a tutorial then please feel free to let me know, and any advice would be greatly appreciated. Some of the tutorials I found were not specific to doing everything on only one server with Centos+Apache+Bind.
Right now all I did was install centos and install ISPconfig3. Trying to move forward correctly so I don't mess up everything I did by not knowing what to do.
Thank you in advance!!
Update:
Okay,
- So I went into ISPconfig3 >> DNS >> Add DNS Zone With Wizard
- mydomain.com
- It created a file in "/var/named" called pri.mydomain.com (Not sure where it got the "pri" from??)
- Below I Changed the IP to ones that aren't mine.
Here is the file output:
[root@server1 named]# cat pri.mydomain.com
$TTL 3600
@ IN SOA ns1.mydomain.com. info.mydomain.com. (
2012060501 ; serial, todays date + todays serial #
7200 ; refresh, seconds
540 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
mydomain.com. 3600 A 199.192.000.140
mydomain.com. 3600 MX 10 mail.mydomain.com.
mydomain.com. 3600 NS ns1.mydomain.com.
mydomain.com. 3600 NS ns2.mydomain.com.
mail 3600 A 199.192.000.140
www 3600 A 199.192.000.140`
However, since this didn't technically tell me how to setup my name servers ns1.mydomain.com and n2.mydomain.com with their proper IP... I figured I am going about this the wrong way.
So from ISPconfig3 I chose the DNS option to delete the zone and it no longer appears in ISPconfig3 but that file still exists. Is this normal?
I have a feeling that by the time I setup my name servers, I will have to do a fresh install to undo any mess I make from testing lol. :(