Suresh Ramasubramanian wrote: > Lots of dynamic DNS services available. Thanks for the pointers. [...] > I don't really see your point. For example, if you have an IP and a DNS / > rDNS scheme for it - for example: > > 192.168.0.X ipX.lan.example.com > > where X --> [1..255] > > Then what does it matter to which actual host that particular IP and DNS / > rDNS combination is bound to?
Sorry I did not mention that I was working only LAN and that I am trying it when there is not DNS/Rdns scheme Anyway I researched a bit, got the solution. Here are steps: 1)Add the following entries to /etc/sysconfig/network-scripts/ifcfg-eth0 file. USERCTL=no BOOTPROTO=dhcp DEVICE=eth0 TYPE=Ethernet ONBOOT='yes' DHCP_HOSTNAME=<Hostname> #please supply appropriate Hostname [just diff and add non-existant entries]. 3) Open /sbin/ifup and search for DHCPCDARGS="$DHCPCDARGS -n" and replace with DHCPCDARGS="$DHCPCDARGS -nr" to make DHCP client RFC1541 (obsolete) compliant. 4) Then '/sbin/ifdown eth0' and then '/sbin/ifup eth0' What this achives is, even though your machine entry is not there in DNS , it create a hostname entry from DHCP_HOSTNAME parameter and then appends the domain name and adds that record in DNS with IP whatever provided by DHCP. With this one need not do manual entry. If the hostname entry is already there with same name it cribs of conflict. Thanks. Mahantesh. ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
