On network change, write current gateway IP to a file using resolve.conf format