[GH-ISSUE #21] hostname for macs show FQDN #86

Open
opened 2026-03-14 01:35:00 +03:00 by kerem · 6 comments
Owner

Originally created by @bbrendon on GitHub (Oct 26, 2022).
Original GitHub issue: https://github.com/amidaware/rmmagent/issues/21

hostname in TRMM GUI table shows : sarahs-imac.local

Some stuff from the mac CLI.

bash-3.2# hostname
sarahs-imac.local
bash-3.2# hostname -f
sarahs-imac.local
bash-3.2# hostname -s
sarahs-imac
bash-3.2#     

Originally created by @bbrendon on GitHub (Oct 26, 2022). Original GitHub issue: https://github.com/amidaware/rmmagent/issues/21 hostname in TRMM GUI table shows : `sarahs-imac.local` Some stuff from the mac CLI. ``` bash-3.2# hostname sarahs-imac.local bash-3.2# hostname -f sarahs-imac.local bash-3.2# hostname -s sarahs-imac bash-3.2# ```
Author
Owner

@silversword411 commented on GitHub (Oct 29, 2022):

Is this a question, statement, or request?

<!-- gh-comment-id:1295843088 --> @silversword411 commented on GitHub (Oct 29, 2022): Is this a question, statement, or request?
Author
Owner

@bbrendon commented on GitHub (Jan 17, 2023):

Here is another crazy hostname that appears.

jnguyen-macbook-pro.domain.com.beta.tailscale.net
<!-- gh-comment-id:1384688651 --> @bbrendon commented on GitHub (Jan 17, 2023): Here is another crazy hostname that appears. ``` jnguyen-macbook-pro.domain.com.beta.tailscale.net ```
Author
Owner

@wh1te909 commented on GitHub (Jan 18, 2023):

what is your request, to have trmm shorten the hostname? I think instead you should change the hostname on the mac that way trmm will report whatever you have set

<!-- gh-comment-id:1387444084 --> @wh1te909 commented on GitHub (Jan 18, 2023): what is your request, to have trmm shorten the hostname? I think instead you should change the hostname on the mac that way trmm will report whatever you have set
Author
Owner

@bbrendon commented on GitHub (Jan 19, 2023):

By default mac seems to append .local or often times the search domain to the hostname.

My request is to show only the hostname and not the FQDN that the OS reports. So something like

hostname = hostname.split(".")[0]
<!-- gh-comment-id:1396318282 --> @bbrendon commented on GitHub (Jan 19, 2023): By default mac seems to append .local or often times the search domain to the hostname. My request is to show only the hostname and not the FQDN that the OS reports. So something like ``` hostname = hostname.split(".")[0] ```
Author
Owner

@silversword411 commented on GitHub (Jan 20, 2023):

It's not TRMMs job to arbitrarily change hostnames otherwise we couldn't rely on TRMM collecting and reporting accurate data.

I think the .local is part of macs goofy smb stack and bonjours advertising so they're DNS compliant and Dnsmasq can handle name resolution better.

Fix the Mac.

<!-- gh-comment-id:1397876588 --> @silversword411 commented on GitHub (Jan 20, 2023): It's not TRMMs job to arbitrarily change hostnames otherwise we couldn't rely on TRMM collecting and reporting accurate data. I think the .local is part of macs goofy smb stack and bonjours advertising so they're DNS compliant and Dnsmasq can handle name resolution better. Fix the Mac.
Author
Owner

@bbrendon commented on GitHub (Jan 9, 2025):

So who is going to open a ticket with Apple to fix this? :)

<!-- gh-comment-id:2578944343 --> @bbrendon commented on GitHub (Jan 9, 2025): So who is going to open a ticket with Apple to fix this? :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rmmagent#86
No description provided.