Simple utility for modifying or deleting several hosts at a time.
modhosts [--help] {server} {zone} [OPTIONS]
option | description |
---|---|
--cidr=CIDR | Select only hosts within this CIDR block. |
--name=regexp | Select only hostnames matching the regular expression. |
--info=regexp | Select only hosts with matching info (this looks for pattern in User, Dept, Location, and Info fields). |
--type=type | Select only hosts of this type (available types: host, cname, arc, srv). |
--ether=regexp | Select only hosts with matching Ethernet (MAC) address. |
--etherempty | Select only hosts without Ethernet (MAC) address. |
--delete | Delete matching hosts. |
--move=CIDR,IP | Move host into given network (starting from IP within that network). |
--rename=regexp | Rename hosts using given "substitution" regular expression. |
--setedate=days | Set host expiration dates to: today+days. |
--setgroup=groupname | Assign hosts to this group. |
--commit | Commit changes (without this no changes are made to database). |
By default this program will not make any changes to Sauron database, it will only display what would be made. Use --commit to make changes into Sauron database.