Ok. I have search the forums for the past 24 hours… can’t seem to find a solution to my problem which is:
I have a CentOS Server with virtualmin (linux1.upan.edu)
I have registered a domain pmc.com.ph (currently parked), I want to host this domain
on my virtualmin server. But the domain registrar explicitly says that :
Name Server 1: nsfwd.domains.ph
IP Address: 203.119.4.4
Name Server 2: ns2.domains.ph
IP Address: 72.51.36.134
Now my question is how do I setup these (2) unique nameservers in virtualmin
for the domain pmc.com? How do I set the hostnames? I have several static ip
addresses that I can use (if that is the requirement).
Can somebody please direct me on any documentation or forum post
that I can follow through. I am really confused here…
Or maybe somebody can just tell me that I am out of my mind and what I am trying
to do is remotely impossible in Virtualmin!
Yeah, its typically just a matter of choosing two IP addresses to use (whether on the same server, or separate servers), and assigning them names such as ns1.example.com and ns2.example.com.
And by that, all I mean is that you’d go into the example.com dropdown in Virtualmin, go into Services -> DNS Domain, and setup two “Address” records, one for ns1, the other for ns2.
Once you do that, you can go to the registrar you bought example.com from, and register those two names as “nameservers”.
Once you’ve told your registrar that you intend on using those as nameservers, you’ll then be able to edit the domain name information at your registrar, and set ns1.example.com and ns2.example.com as the nameservers to use for that particular domain.
What I did was to register ns1.upan.edu and ns2.upan.edu as nameservers at the registrar, those are the Parent Nameservers. Not all registrars will let you register nameservers though. Namecheap and GoDaddy will let you do it.
Then, have them and use them in virtualmin as your nameservers.
Any domain, such as pmc.com, you create in virtualmin will get those nameservers. Then for any domain (pmc.com) you host you change the nameservers (NS records) at its registrar to point to ns1.upan.edu and ns2.upan.edu
Thanks andrychek for your reply… I still have some questions if you don’t mind
“Yeah, its typically just a matter of choosing two IP addresses to use (whether on the same server, or separate servers), and assigning them names such as ns1.example.com and ns2.example.com.”
I intend to use one server … where will I assign the ns1.example.com & ns2.example.com ip addresses?
is it sufficient just to put it on the zone file of example.com? or do i need 2 virtual server with two ip address?