[K12OSN] OT: /etc/hosts autoupdate

Quentin Hartman qhartman at lane.k12.or.us
Tue May 30 19:35:37 UTC 2006


On Tue, 2006-05-30 at 14:42 -0400, Paul VanGundy wrote:
> All,
>  
> Is there a way for /etc/hosts to be automatically updated when DHCP
> gives a lease to a client? So in /etc/hosts it will say something like
> this:
>  
> 172.26.50.25    blah.sa456.k12.nh.us  blah
>  
> After the computer "blah" requested a lease and DHCP acknowledged
> instead of the usual:
>  
> 172.26.50.25    ws005.ltsp    ws005
>  
>  Just curious. Thanks.

Depending what exactly you are trying to accomplish, It might be better
to do this via dynamic DNS. this will give you a good start:
http://www.ops.ietf.org/dns/dynupd/secure-ddns-howto.html


-- 
-Quentin Hartman-

Technology Coordinator
South Lane School District
Cottage Grove, OR
(541)767-3778
http://www.slane.k12.or.us




More information about the K12OSN mailing list