|Not the way to do it, you will just be storing up problems for yourself. A DNS is a little more than a database of IP addresses and domain names.|
What happens when one of these IP address change, which they do from time to time. Unless there is some way of updating your database automatically you will get a 404 error.
If you really do want a DNS, have a look at this: