Api/dhcp
Jump to navigation
Jump to search
the dhcp api is part of the auth-client software package and requires a working dhcp server
dhcp.renew()
broadcasts for a dhcp server and renews the id
dhcp.lookup(name)
does a lookup in the register for "name", can be either name or ID
outputs data in _G.lookupid, _G.lookupname, _G.lookupowner for use by other programs.
dhcp.register(systemname)
registers this system as "systemname" and adds it to the lookup function. must be an actual name.
dhcp.unregister(systemname)
removes this system from the register and lookup function, can be either name or ID