if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Dynamic DNS Server How To Setup Configure Dynamic DNS Server Configuration In Rhel5

system1: Configure Dynamic DNS Server
Step 1:generate dns security key
#dnssec­keygen ­a hmac­md5 ­b 512 ­n HOST /root/sample
it creates two files they are
insert key in named.conf file
#cat K%2Froot%2Fdns%2Fsample.+157+34209.private >>
Before changing:
Step 2:#vim /var/named/chroot/etc/named.conf
options {
directory “/var/named”;
zone “rhel5.com” {
type master;
file “rhel5.com.db”;
Private­key­format: v1.2
Algorithm: 157 (HMAC_MD5)
After changing:
#vim /var/named/chroot/etc/named.conf
key “sample” {
algorithm hmac­md5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
options {
directory “/var/named”;
zone “rhel5.com” {
type master;
file “slaves/rhel5.com.db”;
allow­update { any; };
Step 3: Dynamic DNS Server Configuration in rhel5
Add key in dhcpd.conf file
#vim /etc/dhcpd.conf
ddns­update­style none;
key “sample” {
algorithm hmac­md5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
subnet netmask {
option routers;
option subnet­mask;
option domain­name "rhel5.com";
option domain­name­servers;
default­lease­time 21600;
max­lease­time 43200;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
Step 4:start dhcp and named service
#service named restart
#rndc reload
#service dhcpd restart
Client Side:
Step 5:Edit dhclient­eth0.conf
#vim /etc/dhclient­eth0.conf
send host­name “sys11”;
Step 6: Dynamic DNS Server Configuration in rhel5
enable dhcp in client side
#service network restart
Step 7:check the ip address of machine

Related post