{"slug":"machine-names","title":"Machine names","tags":["tailscale"],"agent_summary":"Last validated: Jan 5, 2026","trigger_phrases":[],"runnable":false,"markdown":"\r\n# Machine names\r\n\r\nLast validated: Jan 5, 2026\r\n\r\nOn Tailscale, machines are distinguishable by a [100.x.y.z](https://tailscale.com/docs/concepts/tailscale-ip-addresses)\r\nIP address, and by a **machine name**.\r\n\r\nThe machine name, shown throughout the admin console and the native Tailscale\r\napps, is the canonical name for your machine on your Tailscale network. If you\r\nuse [MagicDNS](https://tailscale.com/docs/features/magicdns), the machine name also determines the URL your machine\r\nis accessible at.\r\n\r\n## [How machine names are determined](https://tailscale.com/docs/concepts/machine-names\\#how-machine-names-are-determined)\r\n\r\nWhen a new machine is added to a Tailscale network, we automatically generate\r\nits machine name from its OS hostname. The OS hostname is the machine's operating\r\nsystem name for the device. This field gets reported to Tailscale on startup.\r\n\r\nOften, the name ends up being exactly the hostname. But sometimes if a device\r\nalready on the network has the same name, the new machine will get a name like\r\n`<hostname>-1`. If the conflicting machine's name is later changed, this machine\r\nwill still maintain the `<hostname>-1` machine name.\r\n\r\nOS hostnames can also have characters that we don't allow in machine names, so\r\nwe derive the names following a number of rules that aim to produce sensible\r\nresults.\r\n\r\nFor example:\r\n\r\n| OS Hostname | Machine Name |\r\n| --- | --- |\r\n| monitoring | monitoring |\r\n| John's-iPhone-6S.local | johns-iphone-6s |\r\n| 🎊 free form 🎊 | free-form |\r\n\r\nAs corner cases in these rules are found, they will change, so they are not\r\nlisted here. We enforce unique machine names across a Tailscale network so they\r\nmay be used as part of the [MagicDNS](https://tailscale.com/docs/features/magicdns) domain name for a machine.\r\n\r\n## [Renaming a machine](https://tailscale.com/docs/concepts/machine-names\\#renaming-a-machine)\r\n\r\nSometimes the default machine name for a device can be pretty messy and unclear,\r\nsuch as `laptop-a4og4947`. Because of this, we've added the ability to edit the machine\r\nname for a device from the admin console.\r\n\r\nYou can edit the machine name through the UI in the admin console, or through the Tailscale CLI.\r\n\r\nIf [MagicDNS](https://tailscale.com/docs/features/magicdns) is enabled for your network, editing the machine name also edits\r\nthe MagicDNS domain name. Once renamed, your machine will be accessible over MagicDNS using its new name.\r\n\r\n### [Renaming a machine in the admin console](https://tailscale.com/docs/concepts/machine-names\\#renaming-a-machine-in-the-admin-console)\r\n\r\nIn either the [Machines](https://login.tailscale.com/admin/machines)\r\npage of the admin console or the **Machine Details** page, select the ![ellipsis icon](https://tailscale.com/files/images/icons/fa-ellipsis-h.svg)\r\nmenu to the right of the page and select **Edit machine name**. This will open\r\nup the machine name editor.\r\n\r\n![Machine name editing view](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fautogenerate-device-name-checkbox.8841a8b4.png&w=1080&q=75)\r\n\r\nWhen the **Auto-generate from OS hostname** box is checked, as it is by default,\r\nthe machine name is generated from the OS hostname as described above. If the\r\nOS updates the hostname, the machine name will also get updated the next time\r\nTailscale is started up. To avoid these automatic name changes, uncheck this box.\r\n\r\n![Machine name editing view](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdevice-name-modal.a40b120d.png&w=1080&q=75)\r\n\r\nOnce you've made your update, you'll find the new name across the admin console and the\r\nTailscale apps.\r\n\r\n![Updated machine page](https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdevice-name-details.c9fd7de6.png&w=1080&q=75)\r\n\r\n### [Renaming a machine in the CLI](https://tailscale.com/docs/concepts/machine-names\\#renaming-a-machine-in-the-cli)\r\n\r\nIn the Tailscale CLI, set the machine name as part of `tailscale set`:\r\n\r\n```shell\r\ntailscale set --hostname=<name>\r\n```\r\n\r\n![Project Logo](https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed)\r\n\r\nAsk AI\r\n\r\nreCAPTCHA\r\n\r\nRecaptcha requires verification.\r\n\r\nprotected by **reCAPTCHA**\r\n","html":"<h1>Machine names</h1>\n<p>Last validated: Jan 5, 2026</p>\n<p>On Tailscale, machines are distinguishable by a <a href=\"https://tailscale.com/docs/concepts/tailscale-ip-addresses\">100.x.y.z</a>\r\nIP address, and by a <strong>machine name</strong>.</p>\n<p>The machine name, shown throughout the admin console and the native Tailscale\r\napps, is the canonical name for your machine on your Tailscale network. If you\r\nuse <a href=\"https://tailscale.com/docs/features/magicdns\">MagicDNS</a>, the machine name also determines the URL your machine\r\nis accessible at.</p>\n<h2><a href=\"https://tailscale.com/docs/concepts/machine-names#how-machine-names-are-determined\">How machine names are determined</a></h2>\n<p>When a new machine is added to a Tailscale network, we automatically generate\r\nits machine name from its OS hostname. The OS hostname is the machine's operating\r\nsystem name for the device. This field gets reported to Tailscale on startup.</p>\n<p>Often, the name ends up being exactly the hostname. But sometimes if a device\r\nalready on the network has the same name, the new machine will get a name like\r\n<code>&#x3C;hostname>-1</code>. If the conflicting machine's name is later changed, this machine\r\nwill still maintain the <code>&#x3C;hostname>-1</code> machine name.</p>\n<p>OS hostnames can also have characters that we don't allow in machine names, so\r\nwe derive the names following a number of rules that aim to produce sensible\r\nresults.</p>\n<p>For example:</p>\n<p>| OS Hostname | Machine Name |\r\n| --- | --- |\r\n| monitoring | monitoring |\r\n| John's-iPhone-6S.local | johns-iphone-6s |\r\n| 🎊 free form 🎊 | free-form |</p>\n<p>As corner cases in these rules are found, they will change, so they are not\r\nlisted here. We enforce unique machine names across a Tailscale network so they\r\nmay be used as part of the <a href=\"https://tailscale.com/docs/features/magicdns\">MagicDNS</a> domain name for a machine.</p>\n<h2><a href=\"https://tailscale.com/docs/concepts/machine-names#renaming-a-machine\">Renaming a machine</a></h2>\n<p>Sometimes the default machine name for a device can be pretty messy and unclear,\r\nsuch as <code>laptop-a4og4947</code>. Because of this, we've added the ability to edit the machine\r\nname for a device from the admin console.</p>\n<p>You can edit the machine name through the UI in the admin console, or through the Tailscale CLI.</p>\n<p>If <a href=\"https://tailscale.com/docs/features/magicdns\">MagicDNS</a> is enabled for your network, editing the machine name also edits\r\nthe MagicDNS domain name. Once renamed, your machine will be accessible over MagicDNS using its new name.</p>\n<h3><a href=\"https://tailscale.com/docs/concepts/machine-names#renaming-a-machine-in-the-admin-console\">Renaming a machine in the admin console</a></h3>\n<p>In either the <a href=\"https://login.tailscale.com/admin/machines\">Machines</a>\r\npage of the admin console or the <strong>Machine Details</strong> page, select the <img src=\"https://tailscale.com/files/images/icons/fa-ellipsis-h.svg\" alt=\"ellipsis icon\">\r\nmenu to the right of the page and select <strong>Edit machine name</strong>. This will open\r\nup the machine name editor.</p>\n<p><img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fautogenerate-device-name-checkbox.8841a8b4.png&#x26;w=1080&#x26;q=75\" alt=\"Machine name editing view\"></p>\n<p>When the <strong>Auto-generate from OS hostname</strong> box is checked, as it is by default,\r\nthe machine name is generated from the OS hostname as described above. If the\r\nOS updates the hostname, the machine name will also get updated the next time\r\nTailscale is started up. To avoid these automatic name changes, uncheck this box.</p>\n<p><img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdevice-name-modal.a40b120d.png&#x26;w=1080&#x26;q=75\" alt=\"Machine name editing view\"></p>\n<p>Once you've made your update, you'll find the new name across the admin console and the\r\nTailscale apps.</p>\n<p><img src=\"https://tailscale.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdevice-name-details.c9fd7de6.png&#x26;w=1080&#x26;q=75\" alt=\"Updated machine page\"></p>\n<h3><a href=\"https://tailscale.com/docs/concepts/machine-names#renaming-a-machine-in-the-cli\">Renaming a machine in the CLI</a></h3>\n<p>In the Tailscale CLI, set the machine name as part of <code>tailscale set</code>:</p>\n<pre><code class=\"language-shell\">tailscale set --hostname=&#x3C;name>\n</code></pre>\n<p><img src=\"https://cdn.brandfetch.io/tailscale.com/fallback/lettermark/theme/dark/h/256/w/256/icon?c=1bfwsmEH20zzEfSNTed\" alt=\"Project Logo\"></p>\n<p>Ask AI</p>\n<p>reCAPTCHA</p>\n<p>Recaptcha requires verification.</p>\n<p>protected by <strong>reCAPTCHA</strong></p>\n"}