Re: getting static dns

Lee Garrett <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
> Yup... I wish there was a 'partial dhcp' implementation - something 
> where I could say, "hey, give me the current gateway and dns servers".  
> I have a few computers that travel, their IPs don't change but the 
> gateway and dns info do....

There are two possible solutions for this problem: a client-side and
a server-side one.

client-side:
In /etc/network/interfaces, add a post-up line, for example

iface eth0 inet dhcp
	post-up ifconfig eth0 XX.XX.XX.XX

What it does, after dhclient gets all the info and sets the
interface up, it changes the IP adress to XX.XX.XX.XX.

server-side:
Add following lines to your /etc/dhcp(3)/dhcpd.conf:

# Declaration of the subnet
subnet 10.0.0.0 netmask 255.0.0.0 {

host mybox {
        hardware ethernet XX:XX:XX:XX:XX:XX;
        fixed-address YYY.YYY.YYY.YYY;
}
}

This only works if you have ISC dhcp server running. X is your mac
address and Y is your "static" IP.

The server-side solution is IMHO better because the client-side one
will overwrite you IP everytime it updates its lease. If your lease
time is too short, it may be more of a pita than any help.

Greetings,
Lee

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.