Please help with setting up DNS

3 posts / 0 new
Last post
#1 Fri, 03/31/2017 - 11:37
wantei

Please help with setting up DNS

A while ago I managed to install Virtualmin on my VPS following a tutorial online.

I have finished doing the following things: 1) Installed Virtualmin 2) Replaced Apache with Nginx 3) Replaced MySQL with MariaDB 4) Created a virtual server for my domain (ikigainetwork.moe)

The problem is during setup the initial setup I kept the name servers as ns1.ikigainetwork.moe ns2.ikigainetwork.moe ns3.ikigainetwork.moe

I had no idea what the purpose of this was. I also tried adding the above mentioned nameservers to my GoDaddy domain, but they weren't accepted.

Now when I open my site, it just opens op the home folder with the (leftover) apache page.

What do I have to do to get my domain to direct to the correct public_html folder (I have wordpress files there waiting to be installed).

Update 1

So I read up on some stuff online and disabled the BIND DNS server on Virtualmin I was previously hosting my domain on RamNode's DNS Host, didn't really set up things well earlier so I thought I'd upgrade.

I managed to get the "Suggested DNS Records" for my virtual server in virtualmin ikigainetwork.moe. IN A 127.0.0.2 www.ikigainetwork.moe. IN A 127.0.0.2 ftp.ikigainetwork.moe. IN A 127.0.0.2 m.ikigainetwork.moe. IN A 127.0.0.2 ns1.ikigainetwork.moe. IN A 127.0.0.2 ns2.ikigainetwork.moe. IN A 127.0.0.2 ns3.ikigainetwork.moe. IN A 127.0.0.2 localhost.ikigainetwork.moe. IN A 127.0.0.1 minaide.ikigainetwork.moe. IN A 127.0.0.2 mail.ikigainetwork.moe. IN A 127.0.0.2 ikigainetwork.moe. IN MX 5 mail.ikigainetwork.moe. ikigainetwork.moe. IN TXT "v=spf1 a mx a:ikigainetwork.moe ip4:127.0.0.2 ip6:2a00:d880:5:119::625e ?all"

I updated the values on my DNS Host, and waiting to see if it works.

Fri, 03/31/2017 - 20:19
andreychek

Howdy,

Just to verify, is DNS being hosted on a third party, rather than on your server?

If so, you're not likely seeing a DNS issue.

Are you perhaps using Debian or Ubuntu?

If so, you may want to remove the default website, which can be done with this command:

a2dissite 000-default

And then restart Apache.

-Eric

Sat, 04/01/2017 - 00:12 (Reply to #2)
wantei

I've run the command but I'm not using Apache anymore though.

I am using RamNode's DNS Hosting, which is external, I don't really know how to set it up to point to my VPS. My old setting worked but they redirected to the default apache page as I said earlier.

So what I did was I logged in to my DNS control panel and deleted all the records for the domain and replaced it with the ones mentioned in the virtual server, as in my first post.

Now, my website doesn't respond. I'm really stuck I could use some one to walk me through to get it working again. I also saved a copy of my previous DNS config just in case it didn't work.

Update: Wjen I open the IP of my server 81.4.104.56, all I get is an error 403 Forbidden nginx/1.10.0 (Ubuntu)

Topic locked