Step by step setup of DNS Nameservers for EHCP with Godaddy registrar.
I have composed a step by step tutorial for newbies to setup the Name servers on your EHCP Host, with domains registered at Godaddy website and have a static IP Router, In theory it should be very similar with other domain registrars not only the one mentioned, if you follow step by step this tutorial your EHCP will process URL's and Emails no problem.
- First install latest EHCP
- Second, register a .com, .net... domain
- Third, config EHCP
Install the latest EHCP and make sure all components have started and there are no error messages coming up.
We register or use an existing domain at godaddy account and then go to our domains list, select the domain we wish to use as a name server Example: (mycoolserver.com) and click on it to enter the Domain Manager, once loaded at the bottom of the page under where we normally put the nameservers we will find a section that says: "Host Summary (add)" click on add and a popup will appear we create the first Host name: ns1.mycoolserver.com and point it to our host external IP, you can put many but in our case one is enough, SAVE and do the same again and add ns2.mycoolserver.com and point it again to our external IP and SAVE.
For .com domains godaddy says it takes 5-6 hours to process and up to 24h for .net so be patient.
Now we can go to the name servers section of our domain of our domain (mycoolserver.com) and add our own name servers we have created so add ns1.mycoolserver.com & ns2.mycoolserver.com, if the name servers have been created correctly in the previous steps Godaddy won´t give you an error. If you get an error start from the beginning.
Login admin account to EHCP and go to "•Add DNS only" here we add the [domainname] we have setup at Godaddy "mycoolserver.com" and [serverip] our external IP then we save/send query.
IMPORTANT!, this had me bonkers for a while: MAKE SURE THAT PORT 53 IN YOUR ROUTER IS REDIRECTED TO YOUR LOCAL IP WHERE YOUR SERVER IS RUNNING.
BASIC PORTS we need to forward to our local IP:
- 20 TCP FTP – data transfer
- 21 TCP FTP – control (command)
- 25 TCP Simple Mail Transfer Protocol (SMTP)—used for e-mail routing between mail servers
- 53 TCP/UDP Domain Name System (DNS)
- 80 TCP/UDP Hypertext Transfer Protocol (HTTP)
Now us or our clients can register a domain from any registrar and add the name servers we provide: NS1.MYCOOLDOMAIN.COM & NS2.MYCOOLDOMAIN.COM then add the domain in the EHCP panel and that's it!