I recently bought two domains from NameCheap.
I am running a LEMP stack on Debian 7 and want to know how I can create name servers like
ns2.example.com on my server, because that's what I need to set in my domain settings for them to point to my server.
I am using Google's public DNS name resolver
184.108.40.206 (in my
resolv.conf file), in case that's of any help.
I have found some lengthy tutorials on YouTube and elsewhere, but they weren't so clear to me because in every one they are setting up some kind of made up local domain (with Bind9). And I haven't found anything that handles setting up name servers and making registered domains point to the server.
If anybody could explain to me how I could achieve this (so that
example1.com points to, let's say,
[ip]/site_dir1), or tell me what I need to be searching for to get this done, it would be greatly appreciated.