On Mon, Nov 24, 2008 at 05:23:13PM +0000, Jonathan McDowell wrote:
On Mon, Nov 24, 2008 at 04:28:15PM +0000, Chris G wrote:
Is it possible to set up a Linux system so that it has a fixed IP address on the LAN but uses the addresses given to it by a router (using DHCP) for DNS?
Why do you want to statically configure IP but are unable to statically configure DNS?
I believe the normal route for this sort of thing is to configure the DHCP server to hand out a static IP for a given MAC address. Even the consumer level routers I've seen can do this.
Yes, I can get my router to do that but it doesn't give a name to the MAC address does it. My current /etc/hosts file is:-
192.168.1.1 vigor 2820n 192.168.1.4 home.isbd.net home 84-45-228-40.no-dns-yet.enta.net 192.168.1.5 chris 192.168.1.6 maxine 192.168.1.7 nas garage 192.168.1.44 hp7310 HPEDDBB7 HP000D9D068F7D 192.168.13.254 2wire BT2700HGV gateway.2wire.net
I'd really prefer not to have to copy that to every system. I'm sure I once had a router that actually had a DNS server in it where I could have stored the above but neither of my current routers (two ADSL lines, hence the vigor *and* 2wire above) has this ability.