How should I setup DNS when all I have is a VPS with a static IP? [closed]

Solution 1:

You need a DNS hosting service provider (Wikipedia) for your domain.

I recommend you to try out a service like FreeDNS. Free for most use. You can find more free dns providers here.

  1. Register an account at your new dns provider
  2. Create a new zone for your domain (eg. mydomain.tld)
  3. Add a A-Record that points to your Server-IP (e.g. A: * / 127.0.0.1)
  4. Point your domain to the nameserver's provided by FreeDNS

Please note, that it will take 24 – 48 hours before your nameserver info propagates to the rest of the world.

Solution 2:

Who's DNS servers you use are not too important. If your registrar provides DNS, I would just use theirs.

Wherever you host, you need to:

1) Create A records to point your domain to your VPS's IP address.

2) Make sure that at the registrar the nameservers listed match those where you have decided to use.

3) Once done, run your domain through something like http://www.intodns.com/ to make sure you have it right.