conf zone insert host ...
conf zone update host ...
If you go to modify a host and it isn't already there, you will get an 'object not found' error. This happens a lot if you are going back later and trying to import a pile of IPAM data on top of a pile of DNS data (it is never a 1-1 match).
So you have to do 2 passes :
- Modify the existing hosts
- Walk the error log and add hosts that didn't exist.
So I'm proposing a comand that will first try to MODIFY the host, and if there is an error, then try to ADD the host.
But, and here is the problem. Which is more efficient ? MODIFY then ADD, or ADD then MODIFY (or do we need both)
What are your thoughts ?
No comments:
Post a Comment