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
K%2Froot%2Fdns%2Fsample.+157+34209.key
K%2Froot%2Fdns%2Fsample.+157+34209.private
insert key in named.conf file
#cat K%2Froot%2Fdns%2Fsample.+157+34209.private >>
/var/named/chroot/etc/named.conf
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)
Key:kvoh9N29HICRNt6awesddKFH4x3aczaEgT
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 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnet­mask 255.255.255.0;
option domain­name "rhel5.com";
option domain­name­servers 192.168.0.10;
default­lease­time 21600;
max­lease­time 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixed­address 192.168.0.1;
#}
}
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
#neat­tui
#service network restart
Step 7:check the ip address of machine

Related post