---
name: URL
parameters:
  - name
  - target
  - modifiers...
parameter_types:
  name: string
  target: string
  "modifiers...": RecordModifier[]
---

{% hint style="info" %}
This is provider specific type of record and not a DNS standard. It may behave differently for each provider that handles it.
{% endhint %}

### Namecheap

This is a URL Redirect record with a type of "Unmasked", it creates a 302 redirect to the target.

You can read more at the [Namecheap documentation](https://www.namecheap.com/support/knowledgebase/article.aspx/385/2237/how-to-set-up-a-url-redirect-for-a-domain/)

### Porkbun

This creates a temporary (HTTP 302) redirect to the target URL. By default, it includes wildcard subdomains but does not include the URI path in redirection.

Example:

{% code title="dnsconfig.js" %}
```javascript
D("example.com", REG_PORKBUN, DnsProvider(DSP_PORKBUN),
    URL("redirect", "https://example.org"),
);
```
{% endcode %}
