Creating Static DNS Entries

Forward look up entry

gunnalag@master:/etc/named> sudo jco TESTSITE.Testdom.com
===================================================================
RCS file: RCS/TESTSITE.Testdom.com ,v
retrieving revision 1.41
diff -u -r1.41 TESTSITE.Testdom.com
RCS/TESTSITE.Testdom.com ,v  –>  TESTSITE.Testdom.com
revision 1.41 (locked)
done
gunnalag@master:/etc/named> sudoedit /etc/named/TESTSITE.Testdom.com
gunnalag@master:/etc/named> rcsdiff -u TESTSITE.Testdom.com
===================================================================
RCS file: RCS/TESTSITE.Testdom.com ,v
retrieving revision 1.41
diff -u -r1.41 TESTSITE.Testdom.com
— TESTSITE.Testdom.com       2009/07/31 06:40:10     1.41
+++ TESTSITE.Testdom.com       2009/07/31 06:44:36
@@ -13072,6 +13072,7 @@
secmgmt         IN A           10.252.64.26
                 IN HINFO  Sun-x4150 SP-Linux
sepusa1         IN A            177.99.105.15
+sepqausa1       IN A            177.99.105.47
surya1          IN A            149.77.22.42
                IN HINFO        Solaris-2.8
                IN MX           0 surya1
gunnalag@master:/etc/named> sudo dnsinc /etc/named/TESTSITE.Testdom.com
/etc/named/TESTSITE.Testdom.com : serial 0977510031 -> 0977510032
gunnalag@master:/etc/named> /etc/named-checkzone /etc/named/TESTSITE.Testdom.com
zone TESTSITE.Testdom.com /IN: loaded serial 977310032
OK
gunnalag@master:/etc/named> sudo jci /etc/named/TESTSITE.Testdom.com
enter the log message terminated with single ‘.’ or end of file:
>> added forward entry for sepqausa1.
>> .
/etc/named/RCS/TESTSITE.Testdom.com ,v  <–  /etc/named/TESTSITE.Testdom.com
new revision: 1.42; previous revision: 1.41
done
gunnalag@master:/etc/named> sudo /usr/bin/rndc reload
server reload successful
gunnalag@master:/etc/named> host sepqanyc1
sepqanyc1.TESTSITE.Testdom.com  has address 177.99.105.47

gunnalag@master:/etc/named>

 

Reverse look up entry:

gunnalag@master:/etc/named> sudo jco 177.99.105.rev
Password for gunnalag (sudo):
===================================================================
RCS file: RCS/177.99.105.rev,v
retrieving revision 1.67
diff -u -r1.67 177.99.105.rev
RCS/177.99.105.rev,v  –>  177.99.105.rev
revision 1.67 (locked)
done
gunnalag@master:/etc/named> sudoedit /etc/named/177.99.105.rev
gunnalag@master:/etc/named> rcsdiff -u 177.99.105.rev
===================================================================
RCS file: RCS/177.99.105.rev,v
retrieving revision 1.67
diff -u -r1.67 177.99.105.rev
— 177.99.105.rev       2009/07/29 17:35:31     1.67
+++ 177.99.105.rev       2009/07/30 12:31:13
@@ -57,7 +57,7 @@
44             IN PTR          dbusa1.TESTSITE.Testdom.com.
45             IN PTR          dbmom1.TESTSITE.Testdom.com.
46             IN PTR          altirserv.TESTSITE.Testdom.com
-;
+47              IN PTR          sepqausa1.TESTSITE.Testdom.com.
48             IN PTR          srvnew1.TESTSITE.Testdom.com.
49             IN PTR          crygwi1.TESTSITE.Testdom.com.
50             IN PTR          backup1.TESTSITE.Testdom.com.
gunnalag@master:/etc/named> sudo dnsinc /etc/named/177.99.105.rev
/etc/named/177.99.105.rev: serial 0977290015 -> 0977300000
gunnalag@master:/etc/named> /etc/named-checkzone /etc/named/177.99.105.rev
zone 10.77.149.in-addr.arpa/IN: loaded serial 977300000
OK
gunnalag@master:/etc/named> sudo jci /etc/named/177.99.105.rev
enter the log message terminated with single ‘.’ or end of file:
>> allocated static IP for sepqausa1.TESTSITE.Testdom.com
>> .
/etc/named/RCS/177.99.105.rev,v  <–  /etc/named/177.99.105.rev
new revision: 1.68; previous revision: 1.67
done
gunnalag@master:/etc/named> sudo /usr/bin/rndc reload
server reload successful
gunnalag@master:/etc/named> host sepqausa1.TESTSITE.Testdom.com
sepqausa1.TESTSITE.Testdom.com  has address 177.99.105.47
gunnalag@master:/etc/named>

Leave a Reply

Your email address will not be published. Required fields are marked *