--- title: "Polarity General Server v5 - Configure the Server FQDN" slug: "polarity-configure-the-server-fqdn" description: "In Polarity General Server v5 you can set or change the server's fully qualified domain name (FQDN). Edit the /app/.env file, update POLARITY_HOSTNAME and POLARITY_WEB_HOSTNAME." updated: 2024-12-23T21:27:03Z published: 2024-12-23T21:27:03Z canonical: "knowledge.threatconnect.com/polarity-configure-the-server-fqdn" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.threatconnect.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure the Server FQDN *Set the server's FQDN if the hostname does not match.* ## Update FQDN in Polarity Config By default the Polarity Server will assume the FQDN (fully qualified domain name) for your server matches the hostname set on it. **If this is not the case**, you will need to modify the Polarity Server environment file to set the appropriate hostname. To modify the Polarity server environment file begin by opening the /app/.env file for editing. Find the variables POLARITY_HOSTNAME and POLARITY_WEB_HOSTNAME. Set these to the FQDN of your Polarity Server. This can also set this to an IP address. ```actionscript POLARITY_HOSTNAME=your.fqdn.com POLARITY_WEB_HOSTNAME=your.fqdn.com ``` Save the change and close the file. Restart the Polarity Server containers: ```actionscript cd /app && ./down.sh && ./up.sh ``` Your FQDN should now be set, which will ensure that all REST API generated links are correct.