Hello, After many years of harsh and forceful edits of resolv.conf, I'm finally converting to the resolve: :) However I'm experiencing an undesirable behavior.
The docs say that resolve: performs no cleanup on the /etc/resolv.conf file, but alas the 'search' field is being deleted. Line 2355 of do.c has this statement, which I can only interpret to be "remove the search line". There is no function to replace it. while(DeleteItemStarting(&filebase,"search")) { } Of course I can use editfiles to do repair this, but if resolv.conf (with the search list) was correct to begin with, then we have a series of unnecessary edits (resolve: will remove, then have to use 'editfiles' to put it back). Hopefully I am just missing something here so feedback appreciated. If I've got this right, can I just comment these three lines in do.c and recompile to negate the deletion of 'search'? On this topic, I'd like to request a few desirable RFE in the resolve function :) * ability to disable the management of 'domain' in resolve: (ie, dont remove, dont include) * ability to manage resolver 'search' path in resolve: Perhaps by defining a ResolvSearch, can be done based on classes. * define number nameserver lines allowed. The current function, while awesome for ensuring and ordering, just pushes old/dead entries down the list. If allowed to define the number of nameserver enties then the list can be constrained. (I'm accomplishing this now with a cumbersome LocateLineMatching/DeleteLinesAfterThisMatching. Cheers, -dolan _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine