modhosts

Simple utility for modifying or deleting several hosts at a time.

modhosts [--help] {server} {zone} [OPTIONS]

optiondescription
--cidr=CIDRSelect only hosts within this CIDR block.
--name=regexpSelect only hostnames matching the regular expression.
--info=regexpSelect only hosts with matching info (this looks for pattern in User, Dept, Location, and Info fields).
--type=typeSelect only hosts of this type (available types: host, cname, arc, srv).
--ether=regexpSelect only hosts with matching Ethernet (MAC) address.
--etheremptySelect only hosts without Ethernet (MAC) address.
--deleteDelete matching hosts.
--move=CIDR,IPMove host into given network (starting from IP within that network).
--rename=regexpRename hosts using given "substitution" regular expression.
--setedate=daysSet host expiration dates to: today+days.
--setgroup=groupnameAssign hosts to this group.
--commitCommit 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.