On Sun, May 11, 2008 at 03:02:12PM +0800, Pete Kay wrote: > I am currently having 3 servers in the lan which is using dynamic IP > addresses. Each time the router is rebooted, I have to reconfigure all the > db ips and server ips. > > Therefore, I want to assign host name to each machine such as "db" , "ser" > etc, so that I don't use 192.168.x.x in my configure anymore. > > Is this something that can be done? Could someone please give me some > pointer on how to do it?
The difficulty is that you would need to keep updating the DNS server with the hostname/IP mapping every time the router is rebooted. If its a rare event and you want just one config file to change, then pick one of your boxes as the DNS server and install dnsmasq. Then put the hostname/IP mappings in that boxe's /etc/hosts file. Have all the other boxes use this box as their DNS server. Alternatively, instead of as you have now (I think): router/DHCPserver | __________________ | | | box1 box2 box3 You could do either use one of your boxes as a router (if it has the capacity) or add a third box of your own which you control between the router and the network. But then what would be the point of the commercial router? What does this router do other than dhcp and a switch? I've never owned a commercial router. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]