system1: Configure Dynamic DNS Server
Step 1:generate dns security key
#dnsseckeygen a hmacmd5 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”;
};
Privatekeyformat: v1.2
Algorithm: 157 (HMAC_MD5)
Key:kvoh9N29HICRNt6awesddKFH4x3aczaEgT
After changing:
#vim /var/named/chroot/etc/named.conf
key “sample” {
algorithm hmacmd5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
};
options {
directory “/var/named”;
};
zone “rhel5.com” {
type master;
file “slaves/rhel5.com.db”;
allowupdate { any; };
};
Step 3: Dynamic DNS Server Configuration in rhel5
Add key in dhcpd.conf file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
key “sample” {
algorithm hmacmd5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
};
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "rhel5.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixedaddress 192.168.0.1;
#}
}
Step 4:start dhcp and named service
#service named restart
#rndc reload
#service dhcpd restart
Client Side:
Step 5:Edit dhclienteth0.conf
#vim /etc/dhclienteth0.conf
send hostname “sys11”;
Step 6: Dynamic DNS Server Configuration in rhel5
enable dhcp in client side
#neattui
#service network restart
Step 7:check the ip address of machine
Step 1:generate dns security key
#dnsseckeygen a hmacmd5 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”;
};
Privatekeyformat: v1.2
Algorithm: 157 (HMAC_MD5)
Key:kvoh9N29HICRNt6awesddKFH4x3aczaEgT
After changing:
#vim /var/named/chroot/etc/named.conf
key “sample” {
algorithm hmacmd5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
};
options {
directory “/var/named”;
};
zone “rhel5.com” {
type master;
file “slaves/rhel5.com.db”;
allowupdate { any; };
};
Step 3: Dynamic DNS Server Configuration in rhel5
Add key in dhcpd.conf file
#vim /etc/dhcpd.conf
ddnsupdatestyle none;
key “sample” {
algorithm hmacmd5;
secret “kvoh9N29HICRNt6awesddKFH4x3aczaEgT”
};
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnetmask 255.255.255.0;
option domainname "rhel5.com";
option domainnameservers 192.168.0.10;
defaultleasetime 21600;
maxleasetime 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixedaddress 192.168.0.1;
#}
}
Step 4:start dhcp and named service
#service named restart
#rndc reload
#service dhcpd restart
Client Side:
Step 5:Edit dhclienteth0.conf
#vim /etc/dhclienteth0.conf
send hostname “sys11”;
Step 6: Dynamic DNS Server Configuration in rhel5
enable dhcp in client side
#neattui
#service network restart
Step 7:check the ip address of machine
0 Comments