This is probably a FAQ, but I couldn't find it answered. The problem is
common enough that there must be a solution out there.
I have a client machine (SuSE 9.3) which I would like to have a fixed IP
for, but for it to get other information (particularly name servers)
from the DHCP server.
Before you say that I should just configure the DHCP server to assign a
specific IP to a particular MAC address, please understand that I have
very very little control over the DHCP server. The DHCP server is an
SMC8013WG with Comcast's own tinkering of the firmware.
So, I need to do this from the client side.
I was hoping that there would be a simple configuration option through
YaST to set IP manually, while getting everything else through DHCP. If
there is please point me to it.
If there isn't a simple Push Here Dummy way of doing it, I can think of
several alternatives of off the top of my head, but none seem
particularly pretty.
(1) One of the few things I can do with the DHCP server is set lease
times. One option is "forever". I could let my machine get its IP from
DHCP, and then hope that it sticks with that IP for a long time.
(Considering how often I have to reboot the SMC8013WG, I really think
that this would be a very bad idea.
(2) Run bind locally. Set it up as a forwarder, and cobble together
some sort of start up script that queries DHCP and puts the information
into a named configuration file.
(3) Write a start up script that queries DHCP and puts the information
into /etc/resolve.conf
Now of course (3) would be easier than (2), but eventually I'd like to
run named somewhere on my local network for internal domains.
I'm sure that this is a common problem, so there must be well thought
out solutions to it.
-j
|