Setting up DNS using VirtualMin/WebMin
Posted
by
Nyxynyx
on Server Fault
See other posts from Server Fault
or by Nyxynyx
Published on 2012-10-11T07:46:33Z
Indexed on
2012/10/11
9:40 UTC
Read the original article
Hit count: 422
I am moving from a cPanel server to one where I've installed VirtualMin. The LAMP stack and the website files have been setup properly and I can access the website by its IP address.
Problem: Now its time to point my domain mydomain.com
to my new server. After reading many sites describing setting up bind and master zones, I am pretty confused as to what to do, especially coming from a cPanel server where its really simple to set this up.
Attempt
Tried to register my nameservers
ns1.mydomain.com
andns2.mydomain.com
at my domain registrar, but I am missing the IPs I need to point these nameservers to. Should I setns1.mydomain.com
to the IP addres of my web server, and not registerns2.mydomain.com
?When specifying the DNS for
mydomain.com
, the first one I've set it tons1.apadment.com
. On the manager/admin page of my webhost provider, I am given the option to create a secondary slave DNS, which I assigned to the IP address of my server. Though I am not sure how the slave DNS will copy the info from my web server? I have assigned this secondary DNSns.hostprovider.com
as the second DNS formydomain.com
I tried creating a
Virtual Server
under Virtualmin, but it seems to mess up Apache's DocumentRoot for the site by creating and enabling a new vhost file that ends with.conf
. I edited the.conf
file to pointDocumentRoot
back to where its supposed to be/var/www/mydomain
instead of/user/mydomain.com
I believe the next step is to setup the zone. Virtualmin has already created a Master Zone with 8 different addresses (www.mydomain.com, ftp.mydomain.com...). Under
Nameservers
, there are already 2 records. One is the hostname (random name given by hostprovider,ns12345.ip123-123.net
), the other is the secondary slave DNS provided by the host provider. Does having BIND running on my web server makes the server the master DNS?
Thank you!
© Server Fault or respective owner