Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

closed as off-topic by Jacob, Jenny D, TheCleaner, Dave M, mdpc Mar 30 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.

3 Answers 3

up vote 8 down vote accepted

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.

share|improve this answer
    
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
2  
you need to point your domain to the nameservers given by your DNS hosting service provider, to resolve the zones. –  cept0 Nov 17 '11 at 11:34

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.

share|improve this answer

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.