Discussion Locked

Setting up new domains on a Spark 20 Int

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need a simple list of procedures and files/dir that need to be created and or modified each time I set up a new domain on my name server. I am running Solaris 2.6 and Appache. I am new to Unix but have been studying everything I can get my hands on. My admin work is very specific for an Internet server only. I will be using a telnet session as I don't have a Unix OS machine locally. My server is co located in another city 500 miles away. Thanks!

5 replies

by tyswidan

the start with your DNS:
usually the database for DNS are under /var/named/
in there you should add the new zone for the new domain in the file named.conf, then create the db files.
example: if I have somedomain.com to add to my dns:
1) in the /etc/named.conf you add:
zone "somedomain.com" {
type master;
file "db.somedomain";
};
2) in /var/named/, create the file db.somedomain
3) add the reverse lookup ip to your DNS for that domain to piont to somedomain.com.
DNS done, restart the named.
I don't know which release of apache you have, but I'm assuming you have all the modules you need are installed.
start in /usr/local/apache/conf/httpd.conf, here where you specify the locationof the new domain: for example if I have the domain "somedomain.com" then in my httpd.conf I should have the following:

#the ip already assigned in DNS.
ServerAdmin admin@somedomain.com
DocumentRoot /export/home/users/username/public_htm

by tom.oneil

There is an open source product called webmin that will let you manage the whole thing from a web browser interface. It also manages many other products.
I do not reccomend it as a replacement for mark's instructions if you are the sys admin, but it will allow you delegate these chores to non-root users.

This discussion is closed to new replies.