Add the hostname
Hostnames are public names. IP addresses, ports and internal names such as anything ending in .local or .internal are not accepted. An account holds up to 25 hostnames.
- Sign in to the portal and find Hostnames to test.
- Under Add a hostname, enter the hostname of the application, for example app.yourcompany.com, and press Add. If you paste a full address, the portal keeps the hostname and drops the rest.
- The hostname appears in your list with a verification record that is unique to it. You will use that record in the next step.
Option A: a DNS TXT record
The portal shows a Name and a Value for the record. The Name is _grapefruit. followed by your hostname, for example _grapefruit.app.yourcompany.com. The Value is grapefruit-verify= followed by a 32 character token the portal generates for that hostname.
- Open the DNS settings for the domain at your DNS provider. The portal names the nameservers that serve your domain, so you know where to look.
- Create a new record of type TXT.
- Paste the Name. Many providers add the domain for you, so for app.yourcompany.com in the zone yourcompany.com you would enter _grapefruit.app.
- Paste the Value exactly as shown, starting with grapefruit-verify=.
- Save the record, return to the portal and press Check now.
Option B: a file on your website
If DNS is hard to reach, serve the same value from the site itself.
- Create a plain text file whose only content is the Value from the portal, starting with grapefruit-verify=.
- Publish it at https://app.yourcompany.com/.well-known/grapefruit-verification.txt, using your own hostname.
- Open that address in a browser. You should see the value and nothing else.
- Return to the portal and press Check now.
- The address has to answer over HTTPS with the file itself. A redirect to a login page or to another hostname does not count.
- The same file served from the www form of your hostname is also accepted.
If the check does not pass yet
DNS changes and website deploys can take a while to spread. Grapefruit keeps checking every hour for 14 days after you add the hostname, so you can close the tab and come back. These are the usual causes when a record is not found:
- The TXT record sits on the root domain. It belongs on the _grapefruit name under your hostname.
- The provider added the domain twice, giving _grapefruit.app.yourcompany.com.yourcompany.com. Shorten the Name to _grapefruit.app.
- The value was changed on the way in. It has to match the portal character for character.
- The file is wrapped in an HTML page, or the path is missing the .well-known folder.
- To see what the world sees, run: dig TXT _grapefruit.app.yourcompany.com, or: curl -i https://app.yourcompany.com/.well-known/grapefruit-verification.txt
What the proof covers
Each hostname has its own token, its own proof and its own signature. Testing is limited to the exact hostname you verified and signed for. To test a second application, add its hostname and repeat the steps. With proof, signature and payment in place, testing starts on its own.