Why not configure DHCP to assign a given IP address to a MAC address. Thereby you are using a static IP from DHCP:
# Test server host test { hardware ethernet 00:1D:32:3C:DD:2C; fixed-address 192.168.0.253; ddns-hostname "test"; }
Obviously, I'm using DNS also.
On Monday 24 November 2008 17:28:13 Chris G wrote:
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?
-- Chris Green
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!