can't check the mac device's name #72

Closed
opened 2025-12-29 01:21:38 +01:00 by adam · 3 comments
Owner

Originally created by @pppaapp on GitHub (Nov 8, 2021).

1

2

Linux devices don't have any problems

3

but there's a problem with MAC devices

Originally created by @pppaapp on GitHub (Nov 8, 2021). <img width="399" alt="1" src="https://user-images.githubusercontent.com/31263588/140732206-0325fba8-5c07-48c2-b744-2cfea3bb37a5.png"> ![2](https://user-images.githubusercontent.com/31263588/140732263-66e457da-5d3b-4fdc-a7e3-ead1565aad8b.png) Linux devices don't have any problems <img width="297" alt="3" src="https://user-images.githubusercontent.com/31263588/140732628-aab87ce2-4b3f-444b-bc61-0f61777db4e3.png"> but there's a problem with MAC devices
adam closed this issue 2025-12-29 01:21:38 +01:00
Author
Owner

@0xcd0e commented on GitHub (Nov 9, 2021):

The problem here is not the OS, but the name of the machine.
Ive just tried this with two VMs, and when I joined one of them with --hostname TestVM1 I get the same behavior (MagicDNS not working), the other VM is unable to resolve the name, even if I manually type it out, using the correct casing.
But when I join it with --hostname testvm1 everything works as expected.

@0xcd0e commented on GitHub (Nov 9, 2021): The problem here is not the OS, but the name of the machine. Ive just tried this with two VMs, and when I joined one of them with --hostname TestVM1 I get the same behavior (MagicDNS not working), the other VM is unable to resolve the name, even if I manually type it out, using the correct casing. But when I join it with --hostname testvm1 everything works as expected.
Author
Owner

@0xcd0e commented on GitHub (Nov 9, 2021):

It looks like this is a problem in the tailscale client because the client expects the server to handle names differently.
When I join a new device to the official tailscale server and use --hostname TS-Test1 the server will set the machine name to ts-test1 and the OS Hostname to TS-Test1.

2021-11-09 18_28_37-Window

When I join a new device to headscale and use --hostname TS-Test1 the server will set the machine name to TS-Test1 and the OS Hostname to TS-Test1.

2021-11-09 18_30_51-Window

So for better compatibility with official tailscale, headscale should always change the machine name to lowercase.

@0xcd0e commented on GitHub (Nov 9, 2021): It looks like this is a problem in the tailscale client because the client expects the server to handle names differently. When I join a new device to the official tailscale server and use --hostname TS-Test1 the server will set the machine name to ts-test1 and the OS Hostname to TS-Test1. ![2021-11-09 18_28_37-Window](https://user-images.githubusercontent.com/4950716/140974617-6d27fa34-567d-44d8-b221-9ef350274ce0.png) When I join a new device to headscale and use --hostname TS-Test1 the server will set the machine name to TS-Test1 and the OS Hostname to TS-Test1. ![2021-11-09 18_30_51-Window](https://user-images.githubusercontent.com/4950716/140975335-a35dcffa-f0bd-49ea-96d5-034973bc9e70.png) So for better compatibility with official tailscale, headscale should always change the machine name to lowercase.
Author
Owner

@pppaapp commented on GitHub (Nov 10, 2021):

the problem seems to be resolved😀

@pppaapp commented on GitHub (Nov 10, 2021): the problem seems to be resolved😀
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#72