To set up your own (child) NSs for a domain like ns1.your.domain.name and ns2.your.domain.name follow these steps:
- Go to the VestaCP panel at https://ip.of.your.server:8083/
- If the domain has not been created yet, go to the WEB tab, and create it.
- Click the DNS tab. Click EDIT to the required domain.
- Change the NS-servers template to child-ns. Click Save to save your changes.
The dig (domain information groper) utility can be used to verify the entry.
The dig utility installation depends on the OS version:
CentOS |
sudo yum install bind-utils |
Ubuntu/Debian |
sudo apt install dnsutils |
Check example: dig name.of.your.domain @ ip.10.20.30.40
You will get something like this:
; <<>> DiG 9.10.3-P4 <<>> name.of.your.domain @10.20.30.40 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ; name.of.your.domain. IN A ;; ANSWER SECTION: test.dom. 14400 IN A 10.20.30.40 ;; AUTHORITY SECTION: name.of.your.domain. 14400 IN NS ns2.name.of.your.domain.name.of.your.domain. 14400 IN NS ns1.name.of.your.domain. ;; ADDITIONAL SECTION: ns1.name.of.your.domain. 14400 IN A 10.20.30.40 ns2.name.of.your.domain. 14400 IN A 10.20.30.40 ;; SERVER: 10.20.30.40#53(10.20.30.40)
Here you can see that the request for the domain name.of.your.domain was made to the server with the IP address 10.20.30.40. The response contains an A-record with the value 10.20.30.40 (;; ANSWER SECTION:) and NS records (;; AUTHORITY SECTION:) with value ns1. name.of.your.domain. and ns2. name.of.your.domain. Here you can see the IP addresses of NS servers – 10.20.30.40 and 10.20.30.40. More about CNAME.
So that ns1.name.of.your.domain and ns2.name.of.your.domain are on different IP addresses (requirement of some registrars):
- Go to the DNS tab, select a domain, and click LIST xx RECORDS.
- Press EDIT on one of the ns1 or ns2 entries
- Enter the new IP address in IP or Value. Click Save to save your changes.
Dedicated IP hosting features.
If you have any questions, please create a ticket to technical support.