On Mon, Nov 24, 2008 at 05:39:14PM +0000, Jonathan McDowell wrote:
On Mon, Nov 24, 2008 at 05:34:21PM +0000, Chris G wrote:
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.
Did on my Netgear and my BT Home Hub, even before I reflashed with OpenWRT (and thus got the lovely dnsmasq). You can always run the DHCP server somewhere more sensible and point it at the DNS server on the router if required. I don't know anything about the Vigor or 2wire routers (and cba Googling) but I'd be surprised if they had no way to add hostnames for local IPs.
The 2wire router is a BT Business Hub, it's a bit 'locked down' by BT I think though. The Vigor is the Draytek Vigor 2820n, it does the load balancing between its ADSL connection and the BT router's ADSL connection.
I also have two other routers lying around (a Speedtouch 716wl and a Zyxel 660h), I can't see anywhere that any of them would allow putting local IP *names* against IP addresses. I could quite easily replace the BT 2Wire router with either of these if they *did* allow entry of name/IP pairs.