Creation of NS servers

Hello, I want to make a mini hosting for my friends. What is the point, I need that when buying a domain.com domain name, a friend indicated my NS servers, i.e. ns1.hosting.com and ns2.hosting.com. How can I achieve this result?
Let’s say hosting.com is my domain name;
Let’s say 123.123.123.123 is the address of my VDS;
In Hestia, I created a DNS with the domain name hosting.com using the child-ns template. At the registrar in the DNS panel, I added the domain name hosting.com with the slave type and the master IP 123.123.123.123. What do I need to do next?
Registrar


Step 1:

Create a new DNS domain and select template “child-ns”

Result will become:

Step 2:

For your your domain change at the register the name server

Step 3 wait for up to 3 hours…

And after that setup the other domains. You can use the normal template but you need to modify the name server in the user settings

2 Likes

Step 1: I created added domain name in DNS.

Step 2: I have added NS records to hosting.com.
Step 2

Step 3: I expect 24 hours, in case of problems I will add an answer. If the issue is resolved, I will mark the solution.

Additional:
Package customization:
Additional 1

systemctl status bind9:

Configure DNS server:
Additional 3

Edit DNS Zone:

Also, I have one IP address, can I use it on ns1 and ns2?

Already 19 hours have passed, and the name-server still does not exist.

Trying to attach domain.com:

Use your own domain name instead ns1.hosting.com / ns2.hosting.com

ns1.hosting.com is equivalent to ns1. <my_domain_name> .com;
123.123.123.123 is equivalent to <my_ip>.<my_ip>.<my_ip>.<my_ip>;
Just replaced via page code view to hide the original domain name and IP address.

Configure Server: BIND9
/etc/bind/named.conf.options

options {
directory “/var/cache/bind”;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See VU#800113 - Multiple DNS implementations vulnerable to cache poisoning
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0’s placeholder.
// forwarders {
// 0.0.0.0;
// };
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See Current Root Trust Anchors - ISC
//========================================================================
dnssec-validation auto;
auth-nxdomain no;
allow-recursion { 127.0.0.1; ::1; };
allow-transfer {“none”;};
hostname none;
server-id none;
version none;
};

Fixed the problem:

Fix:
Step 1: Moved from Cloudflare to a DNS hosting provider;

Step 2: Installed HestiaCP from scratch;

Step 3: Edit server DNS settings
Additional 1

Step 4: Add DNS-zone

Step 5: Added MASTER domain and IP at the registrar
Registrar

Step 6: The registrar indicated the following entries

Step 7: Waiting for DNS update

Step 1: Moved from Cloudflare to a DNS hosting provider;

Disable proxy would usefull information next time…

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.