Difference between revisions of "Dns Management"
m (added how to push changes) |
(added test section) |
||
Line 11: | Line 11: | ||
tremulous IN CNAME game |
tremulous IN CNAME game |
||
</pre></code> |
</pre></code> |
||
+ | |||
+ | This snipped of the file shows that game.cslabs should be resolved 128.153.145.36. It then goes on to specify that tremulous.cslabs should resolve to the same address as game.cslabs. |
||
+ | |||
+ | |||
===145.153.128.in-addr.arpa=== |
===145.153.128.in-addr.arpa=== |
||
<code><pre> |
<code><pre> |
||
Line 17: | Line 21: | ||
==How to push the changes to DNS2== |
==How to push the changes to DNS2== |
||
Make sure that the serial# has been changed in any edited files. Then run '''rndc reload'''. |
Make sure that the serial# has been changed in any edited files. Then run '''rndc reload'''. |
||
+ | |||
+ | ==Testing== |
||
+ | To check that your changes worked properly use the nslookup command. Lets say that you wanted to check game.cslabs. You would run: |
||
+ | <code><pre> |
||
+ | root@dns1 ~]# nslookup game.cslabs 128.153.145.3 |
||
+ | Server: 128.153.145.3 |
||
+ | Address: 128.153.145.3#53 |
||
+ | |||
+ | Name: game.cslabs.clarkson.edu |
||
+ | Address: 128.153.145.36 |
||
+ | |||
+ | root@dns1 ~]# nslookup game.cslabs 128.153.145.4 |
||
+ | Server: 128.153.145.4 |
||
+ | Address: 128.153.145.4#53 |
||
+ | |||
+ | Name: game.cslabs.clarkson.edu |
||
+ | Address: 128.153.145.36 |
||
+ | |||
+ | </pre></code> |
Revision as of 20:49, 27 September 2011
Contents
Introduction
A DNS server manages name resolution of computers on a subdomain. For example, going to docs.cslabs.clarkson.edu you are using clarkson.edu's DNS server to find the ip address of cslabs. This would be the CSLabs' DNS server. Now we use the CSLabs' DNS server to find the ip address of docs.
Where are the files?
The files you need to edit are in /var/named/ on DNS1. They link to corresponding files in /var/named/chroot/var/named/. You need to be root to edit these files.
What needs to be changed?
cslabs.clarkson.edu.zone
game IN A 128.153.145.36
tremulous IN CNAME game
This snipped of the file shows that game.cslabs should be resolved 128.153.145.36. It then goes on to specify that tremulous.cslabs should resolve to the same address as game.cslabs.
145.153.128.in-addr.arpa
3 IN PTR dns1.cslabs.clarkson.edu.
How to push the changes to DNS2
Make sure that the serial# has been changed in any edited files. Then run rndc reload.
Testing
To check that your changes worked properly use the nslookup command. Lets say that you wanted to check game.cslabs. You would run:
root@dns1 ~]# nslookup game.cslabs 128.153.145.3
Server: 128.153.145.3
Address: 128.153.145.3#53
Name: game.cslabs.clarkson.edu
Address: 128.153.145.36
root@dns1 ~]# nslookup game.cslabs 128.153.145.4
Server: 128.153.145.4
Address: 128.153.145.4#53
Name: game.cslabs.clarkson.edu
Address: 128.153.145.36