[COLUG] Re: Lan hostname to IP resolution

jep200404 jep200404 at columbus.rr.com
Sun Feb 24 16:39:28 EST 2008


david riggs wrote: 

> "What is the best (or easiest?) way to set up so that the system can
> 
> figure out for itself the IP address for each machine (as it changes 
> over the days) (from the Verizon DSL router)"

> However, it looks like that is not so trivial after all. 

Yup. this is something at which Linux is feeble. 

The dirtbag technique is to enable samba, 
then use nmblookup to get the IP addresses. 
You would write a little script to extract the IP address 
out of the output of nmblookup. 

> "scp -pr project1 my-etch1:"

would become something like: 

"scp -pr project1 `getipaddressofthatsambathingy my-etch1`:"



More information about the colug432 mailing list