1

I have the domain name example.com and I want to be able to configure my linux vps to handle what subdomain points to what IP.

For an example I want to be able to set test1.example.com to point to 99.99.99.99. I know I can just use my domain register's DNS to do this but I want to be able to quickly change/add/delete records.

Someone has recommended me to use BIND but it doesn't seem to do what I'm looking for.

Thanks

4
  • You should ask this qusetion on SuperUser or ServerFault, but not here. Commented Nov 4, 2015 at 17:34
  • If you want your VPS to handle other ip addresses, you can simply add them to /etc/hosts Commented Nov 4, 2015 at 17:34
  • Seems reasonable to ask it here, particularly if it involves configuration of bind, dnsmasq, etc. as that satisfies the on-topic requirement, "Using or administering a *nix desktop or server" Commented Nov 4, 2015 at 20:38
  • @Vinz: he really should ask this question on Google. Granted, just putting the question, you will have to read a few articles. But if you put "bind" behind this question you get this fine tutorial as the first result: digitalocean.com/community/tutorials/… (i couldn't remember how to markdown links to save my life!) Commented Nov 4, 2015 at 22:23

1 Answer 1

0

To run your own DNS, you would have to:

  • understand how DNS works. The O'Reilly book DNS & Bind is a good start.
  • install bind, dnsmasq, nsd, or similar authoritative name server
  • configure it to serve your domain
  • test it and make sure it's working (e.g. by doing nslookups from the server itself)
  • either update your domain at your registrar's web site so that the NS (nameserver) records point to your server, or ask your registrar to do it.

NOTE: you really should have at least two different nameservers (in case one is down or unreachable), preferably on two separate networks. Check to see if your registrar offers DNS secondary service - if so, you'll have to configure your DNS server to allow XFER requests from their DNS servers.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.