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

I have a VPS with a static IP and a domain pointed to the registrants nameservers, so I can change all of the DNS records.

In past, I've always just set nameservers to my VPS/hosting provider, but I can't do that now. All I have is a static IP for the server.

The question is, how should I configure the domain to point to the VPS? Is it enough if I just set a A record with the IP address?

-

## closed as off-topic by Jacob, Jenny D, TheCleaner, Dave M, mdpcMar 30 '14 at 0:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Jacob, Jenny D, TheCleaner, Dave M
If this question can be reworded to fit the rules in the help center, please edit the question.

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.

-
My domain registrar offers to create and manage DNS zone, so I guess it doesn't matter where I create the A-record as long as I have set correct nameservers right? –  Jakub Arnold Nov 17 '11 at 11:30
you need to point your domain to the nameservers given by your DNS hosting service provider, to resolve the zones. –  askmatey Nov 17 '11 at 11:34

For most purposes (including website hosting) it's enough to create only A record. If you want to receive incoming emails - specify MX record.

-

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: