On Mon, Nov 24, 2008 at 04:39:35PM +0000, Stuart Bailey wrote:
On Monday 24 November 2008 16:28:15 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?
Dynamic DNS updates - assuming you are using bind:
http://www.unix.com.ua/orelly/networking_2ndEd/dns/ch10_02.htm
Not quite what I meant. I'll try and clarify.....
I don't run a DNS server on any of the Linux boxes here. There are three Linux systems, one windows system and occasional visiting (usually Windows) systems. There are also a couple of printers and a DECT telephone system.
Currently most of the above have fixed IP addresses on the LAN and I have /etc/hosts (or the Windows equivalent) with the addresses in it. I manually set the DNS addresses in resolv.conf. Obviously 'visiting' systems use DHCP.
What I'd like to do is to have all systems use DHCP as then I wouldn't have to configure so much but it seems to me that I need fixed IPs for a number of things (the printers, some of the Linux systems, etc.). So if I could set a system's IP address but tell it to obtain everything else it needs to know (e.g. in particular the DNS server addresses) by DHCP it would make life much easier.
Alternatively I suppose I could set up bind in one of my Linux boxes and tell everything else to use that as the DNS server although even then I don't quite understand how things like printers work. If a printer acquires its IP address by DHCP how do you use it?