NameServer, Domain and SubDomain in 1 IP address
Dear all
I am new in linux please help I have domain: testing.com Subdomain: private.testing.com mail.testing.com ftp.testing.com How to create local nameserver ns.testing.com also configure all it in one ip address ex. 10.20.30.40. Debian 8 Thank you. |
The easiest way to create a local nameserver is adding all names to /etc/hosts, then run dnsmasq. dnsmasq will read /etc/hosts and use the mapping it finds there to respond to DNS requests.
Or you could install a full nameserver like BIND. That requires considerably more work and, most of all, a few days or weeks of learning, depending on your experience with DNS. |
Hi,
This is my default host file Quote:
Would I just add our outside IP and the domain name of the site like so? Quote:
My Domain Registry said I need to do the below instructions to re-delegate the name to my office server, say sitenumber1.com. Does it look correct? Quote:
|
Setting up nameserver on office server/dom registry
Hi again,
It is a very confusing subject and years since I did anything like it. My main gig at the moment is website hosting on shared servers with WHM and Cpanel so much of what I am trying to do here is automatically done on these shared servers. I delegate and redelegate all the time for sites but the DNS is already setup on the shared server. On looking at it, those instructions above from my Registry gives me a, 'child' dom name. For example one of the doms I have is say, example1.com, then this gives me... mysite.example.com. If I am thinking correctly this is not what I want. I want the name example.com to resolve on my server. My static IP# does now resolve there, but I need the actual dom name to as well. In overview I want to have several domain names served from my on static IP So to do this I think I need to do at least 2 things.. Put the name example.com into my hosts file and Enter a nameserver address into the admin area of example.com in the Registry. Usually ns1 and ns2, ns3 etc. This is where I get lost :-( I own the name, 'myownofficeserver.com' and I want to use it as the nameserver for all other domains I host. I don't know if I'm seeing it correctly but I see it as a sort of 'triangle'. myownofficeserver.com at the top and splitting into all other doms I host via the host file. Does this make sense? Shame I can't find a clear tutorial that explains it all from wo to go. I have seen many but they seem to say different things. Gotta go get a coffee after that ! |
Per the RFCs, authoritative DNS requires at least two (preferably three) name servers on different netblocks (so, at least two IP addresses). I've decided that makes hosting my own name servers impractical. I use the registrar's name servers as the authoritative name servers for the domains I host (around 70) to fulfill that requirement. That's included in the price of the registration at the registrar I use (I believe that's usually the case...change registrars if it's not)
So, update the current authoritative name servers for your domain(s) so they use your static IP to get what you want. |
All times are GMT -5. The time now is 03:01 PM. |