[ALUG] Is it possible to use DHCP for DNS only?

Jonathan McDowell noodles at earth.li
Mon Nov 24 17:39:14 GMT 2008


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.

J.

-- 
Revd. Jonathan McDowell, ULC | I am afraid of the dark.




More information about the main mailing list