Difference between revisions of "Private Nameservers in Webmin"

From vpsget wiki
Jump to: navigation, search
Line 1: Line 1:
 
If you want to set up nameservers you need two dedicated IP addresses from ISP or hosting provider.
 
If you want to set up nameservers you need two dedicated IP addresses from ISP or hosting provider.
  
Step 1. Registering name servers.
+
Assume you have registered domain name "domain.com", you have two IP addresses: 1.2.3.4 and 5.6.7.8. And your server's hostname is "server1.domain.com".
  
Login to your domain name control panel (registrar) and register child name servers. For example, if you have regisrered domain.com you should register ns1.domain.com and ns2.domain.com:
+
'''Step 1. Registering name servers.'''
 +
 
 +
Login to your domain name control panel (registrar) and register child name servers:
  
 
1.2.3.4 ns1.domain.com<br/>
 
1.2.3.4 ns1.domain.com<br/>
 
5.6.7.8 ns2.domain.com
 
5.6.7.8 ns2.domain.com
 
Where 1.2.3.4. and 5.6.7.8 are your IP addresses.
 
  
 
Exact way of registering child name servers depends on your registrar and can be easily found in the Internet.
 
Exact way of registering child name servers depends on your registrar and can be easily found in the Internet.
  
Step 2. Configure BIND server
+
'''Step 2. Configure BIND server'''
  
Login to your webmin panel using url
+
Login to your webmin panel using url:
  
 
http://YourIP:10000 or https://YourIP:10000
 
http://YourIP:10000 or https://YourIP:10000
  
Click on the "BIND DNS Server" under "Servers" category.
+
Click on the "BIND DNS Server" under "Servers" category and select "Create master zone".
 +
 
 +
Fill the fields:
 +
 
 +
Domain name / Network: domain.com<br/>
 +
Master server: server1.domain.com<br/>
 +
Email address: root@domain.com (or any email you want)
 +
 
 +
Press "Create".
 +
 
 +
Now you are in your master zone control panel. Press "Address" and set A Records:
 +
 
 +
domain.com. 1.2.3.4<br/>
 +
server1.domain.com. 1.2.3.4<br/>
 +
ns1.domain.com. 1.2.3.4<br/>
 +
ns2 domain.com. 5.6.7.8<br/>
 +
Note that dot "." at the end of domain name is necessary.
 +
 
 +
You can also add any subdomains you need, for example: ftp.domain.com, www.domain.com, mail.domain.com etc.

Revision as of 12:48, 12 November 2013

If you want to set up nameservers you need two dedicated IP addresses from ISP or hosting provider.

Assume you have registered domain name "domain.com", you have two IP addresses: 1.2.3.4 and 5.6.7.8. And your server's hostname is "server1.domain.com".

Step 1. Registering name servers.

Login to your domain name control panel (registrar) and register child name servers:

1.2.3.4 ns1.domain.com
5.6.7.8 ns2.domain.com

Exact way of registering child name servers depends on your registrar and can be easily found in the Internet.

Step 2. Configure BIND server

Login to your webmin panel using url:

http://YourIP:10000 or https://YourIP:10000

Click on the "BIND DNS Server" under "Servers" category and select "Create master zone".

Fill the fields:

Domain name / Network: domain.com
Master server: server1.domain.com
Email address: root@domain.com (or any email you want)

Press "Create".

Now you are in your master zone control panel. Press "Address" and set A Records:

domain.com. 1.2.3.4
server1.domain.com. 1.2.3.4
ns1.domain.com. 1.2.3.4
ns2 domain.com. 5.6.7.8
Note that dot "." at the end of domain name is necessary.

You can also add any subdomains you need, for example: ftp.domain.com, www.domain.com, mail.domain.com etc.