theforeman/foreman · error · ProxyException

Unable to set DNS entry

Error message

Unable to set DNS entry

What it means

Error "Unable to set DNS entry" thrown in theforeman/foreman.

Source

Thrown at app/services/proxy_api/dns.rb:15

module ProxyAPI
  class DNS < ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + "/dns"
      super args
    end

    # Sets a DNS entry
    # [+fqdn+] : String containing the FQDN of the host
    # [+args+] : Hash containing :value and :type: The :fqdn key is taken from the fqdn parameter
    # Returns  : Boolean status
    def set(args)
      parse post(args, "")
    rescue => e
      raise ProxyException.new(url, e, N_("Unable to set DNS entry"))
    end

    # Deletes a DNS entry
    # [+key+] : String containing either a FQDN or a dotted quad plus .in-addr.arpa.
    # Returns    : Boolean status
    def delete(key)
      parse(super(key.to_s))
    rescue RestClient::ResourceNotFound
      # entry doesn't exists anyway
      true
    rescue => e
      raise ProxyException.new(url, e, N_("Unable to delete DNS entry"))
    end
  end
end

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/services/proxy_api/dns.rb:15 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23). Data as JSON: /api/errors/8792b36d795b5a7c. Report an issue: GitHub.