vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, 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? Thanks, Pete |
| |||
| On Sun, May 11, 2008 at 03:02:12PM +0800, Pete Kay wrote: > Hi, > > 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? Some routers have the possibility to assign fixed IPs, but I guess you already checked this. It might also work without DHCP, did you try just putting a static config in the respective /etc/network/interfaces? Also, if the router has some kind of DNS caching it might be possible that it can also resolve the names of your local machines. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIJp5EqJyztHCFm9kRAorUAJ4vcVagbg8bYRKz0vIFc2 opvFbbcwCdHycW hzL1aXReo3FMYcTverBdHhU= =vOa3 -----END PGP SIGNATURE----- |
| |||
| On 11-May-08, at 12:32 PM, "Pete Kay" <petedao@gmail.com> wrote: > Hi, > > 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. > Why not assign ip addresses based on the mac adresses of the individual machines. Since you don't have a big LAN addressing via / etc/hosts should work fine for you and you don't need to learn complicated DNS stuff. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
| |||
| 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 debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
| ||||
| On Sunday 11 May 2008 12:02:12 am 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? You should be able to configure static host assignments in DHCP with your router, though you might have to change firmware entirely. http://www.dd-wrt.com/ -- Paul Johnson baloo@ursine.ca Explaination of .pgp part: http://linuxmafia.com/faq/Mail/rant-gpg.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBIJyq3UCxPKZafKh0RAjcmAJ9ejxoLOo4DgouFSqzFbC Fd3Lv9PACeP7bQ g+ObFLno/UfJQu4kUkTVWvc= =mE7V -----END PGP SIGNATURE----- |