I am still a newbie when it comes to Linux, and I recently bought 2 domains from NameCheap.
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
220.127.116.11 (in my
resolv.conf file), if that's of any help.
I have found some lengthy tutorials on YT and elsewhere, but to me they weren't so clear because in every one they are setting up some kind of made up local domain (with Bind9). And 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.