Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

sorry for bad english I have domain name (without IP assign) like, and I have linux VPS with Static IP like How Can I assign IP to my domain name? Is it possible I run my own DNS server or I use any free DNS server?

share|improve this question

closed as not a real question by Chopper3, Tom O'Connor, Shane Madden, kce, Chris S Feb 11 '12 at 0:12

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Typically the domain registrar that you used to purchase the domain offers DNS services as well. Running your own is doable, but more complex; you may want to stick to the simpler option unless you're confident in your ability to run it yourself. – Shane Madden Feb 10 '12 at 22:30

4 Answers 4

up vote 0 down vote accepted

First you need to contact your registrar. This is where you purchased/registered your domain.

There, you will need to configure the DNS server or servers configured for you domain Some registrars will offer a service to do this. If they offer this service, my advice is to use it as this will be simpler. All you will need to do is then give a hostname or wildcard configuration pointing to

The other alternative is to use the registrar to configure your nameserver(s) for your domain to point to your VPS. This is not recommended for a few reasons. First, it is more complicated to setup. Second, you should really have multiple nameservers for a domain for redundancy. Some domains will require this. Folks with a single VPS have gone so far as to configure multiple IPs on their VPS host to satisfy the multiple hosts requirement. This is obviously working around the problem without solving it.

share|improve this answer

If you purchased the domain from GoDaddy or a site like that, they'll host your DNS for you. All you have to do is point the DNS records for the resources you plan on hosting to the IP of your server.

For example, if you're hosting a website on your server, you're going to want to change the IP in the 'www' record to reflect the IP of your server.

If you're hosting mail, you're going to want to change the 'mail' entry to your IP (if you're hosting webmail) and modify the MX records to point to your server as well.

This is GoDaddy's DNS help section, but the principles will apply no matter who you purchased the domain from.

share|improve this answer

You'll need to set some of this up wherever you registered your domain at.

  • Set your nameservers for the domain to whoever is hosting your VPS


  • If your registrar provides DNS capabilities then add your server as a Host record (A)

share|improve this answer

You can assign it in the same place where you registered your domain. Check our various DNS record types:

Based on what you are trying to achieve you can have your own dns server or usually your domain registrar provides you with the default name servers.

share|improve this answer

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