Nikolas
Fri 2 September 2005, 01:26 pm GMT +0300
Well here is what you have to do. Having root access on your server go to the directory where the domain records are stored
eg.
cd /var/named/domains
There must be a file with your domain name. eg. something.com
Edit this file with a text editor:
vi something.com
The file contents is like this:
$ORIGIN something.com.
@ 86400 IN SOA something.com. (
2005083100 ; serial
8H ; refresh
2H ; retry
1W ; expire
1D ; minimum
)
@ 1D IN NS ns2.dnsprovider.com.
@ 1D IN NS ns1.dnsprovider.com.
@ 1D IN MX 10 mail
mail 1D IN A 62.38.134.112
www 1D IN A 62.103.148.30
ftp 1D IN CNAME www
something.com. 1D IN A 62.103.148.30
To explain a little bit the ip (62.103.148.30) is the ip of your server. What you have to do is add a line to the end of the file with this:
subdomain 1D IN A 62.103.148.30
Then you have to replace the date in this line :
2005083100 ; serial
with the current date(year, month, day). eg
2005090200 ; serial
After that save the file and restart the service.
service named restart
Of course after that you should setup the virtual host to Apache (or whatever web server you are using)