replaced hardcoded hostname and domainname in the nsupdate.erb template