Hello all,
Hoping to get some help setting up my VPS. I think I am messing up the DNS somewhat.
So far I have SSHed into my CentOS VPS and installed VirtualMin via install.sh
Then through VirtualMin I created the virtual host sebastianedwards.co.nz
I asked my domain registrar to set up what I believe are called 'glue records' to point ns1.sebastianedwards.co.nz to my VPS's IP address. This is the DNS dump they returned to me:
Name Type Data Aux TTL ns1.sebastianedwards.co.nz. A 111.65.227.8 0 86400 sebastianedwards.co.nz. A 111.65.227.8 0 43200 sebastianedwards.co.nz. MX mail.discountdomains.co.nz. 10 43200 sebastianedwards.co.nz. NS ns1.discountdomains.co.nz. 0 43200 sebastianedwards.co.nz. NS ns2.discountdomains.co.nz. 0 43200 sebastianedwards.co.nz. NS ns3.discountdomains.co.nz. 0 43200 www.sebastianedwards.co.nz. A 111.65.227.8 0 43200
Then I set my domain sebastianedwards.co.nz and two other domains to have the name server ns1.sebastianedwards.co.nz
The result is: - 'sebastianedwards.co.nz' loads the 'sebastianedwards.co.nz' site. - 'www.sebastianedwards.co.nz' fails. - the other two domains after having them set up in virtualmin fail. - pointing my browser to either my VPS's IP address and ns1.sebastianedwards.co.nz results in the 'sebastianedwards.co.nz' site loading.
I have a feeling I've made a real mess of things. Could anyone point out where I've gone wrong?
Thanks for your help,
Sebastian
im not an expert at this, but when did you setup the ns1/ns2? And when did you set the nameservers of the 3 domains?
If it makes any difference, i cannot load any of the links at all (with or without www). You may want to give it a bit of time (48 hours) for the dns details to go get around, if not done so already.
im guessing your a NZ user, and you may already know how slack the isps are here. Last time i setup a site, took a whole week for my isp to update their dns records. however others (with different isp's) were able to view the site just fine.
Give it time, and maybe try some of the web dns lookup tools available to see if its showing the correct dns etc, again this would be what the tools servers isp shows as the dns, not what your isp shows you... The should be sync-ed given time.
@Thursday: Well, whatever your registrar sent you in that zone file, they have a different setup now.
They had this for the NS entries:
Which means their servers are/were authoritative for your zone. Cause right now, the New Zealand NICs report this:
The first bit of that, including the glue record, looks okay, but the second I cannot judge.
Anyway, "twisted4life.com" has some serious configuration issues there. When I query them for your domain, they reply:
Which is about the biggest nonsense you can do in a nameserver configuration. Telling that localhost is authoritative for the DNS root zone. (Aside from the fact that NS entries require a hostname, not an IP address.) Nice one, really. ;)
The effect is: It looks to me that you set up your part all okay. But due to the fact that the NZ NIC has one correct and one BS entry in their setup, it will be a 50-50 random chance if people who try to access your web site will be able to do so. ;) (Since out of multiple NS entries given for a domain, the one to use is - for load balancing purposes - chosen randomly upon each name resolution request.)