def update
    @dns_name = DnsName.find(params[:id])
    if @dns_name.update_attributes(params[:dns_name])
      flash[:notice] = "Successfully updated dns name."
      redirect_to @dns_name