
Originally Posted by
MACscr
Maybe i was looking at it wrong. One one system, it showed me that i could remove all those entries by running:
Code:
/scripts/unmanaged_zones
but that doesnt seem to do anything on two other systems. Well it doesnt delete any at least, it shows:
Code:
All zones accounted for and managed by cPanel/WHM. See /etc/unmanaged_zones for exclusions.
And shows the list of unamanged zones above it. Seems the two servers worked differently. One seemed to use that list for a delete list and the other used it for an exclusion list. Im confused.
Domain names removed from the generated list (in "/etc/unmanaged_zones") will be removed upon manually running the matching script ("/scripts/unmanaged_zones"), thus excluding domains that are manually retained in the list; that is, domain names you decide to keep in the list are excluded from removal, while all domains that are deleted from the list will be removed.
When running the auto repair script for the first time, there should be text similar to the following:
Code:
Writing unmanaged/unauthoritative domains to /etc/unmanaged_zones
To remove any unmanaged domains from this system please edit /etc/unmanaged_zones
and remove any domains that you wish to have removed and run /scripts/unmanaged_zones.
Zones added through the WHM directly will be included in this list. Please review the zones
listed in the file carefully and ensure that they should be removed before deleting their
respective entries in /etc/unmanaged_zones.
Done
The auto-repair script will create the following file and matching script:
Code:
/etc/unmanaged_zones
/scripts/unmanaged_zones
The aforementioned two files may be removed to recreate a first-run scenario:
Code:
# rm -fv /etc/unmanaged_zones /scripts/unmanaged_zones
# /scripts/autorepair unmanaged_zones