This is a script to make NetworkManager add the contents of resolv.conf.head and resolv.conf.tail around the auto-generated resolv.conf. You probably want to install it from the AUR.
See the ArchWiki articles on resolv.conf and the NetworkManager dispatcher for more information.
The NetworkManager page also has a section on resolv.conf; this script is adapted from the one presented there.