Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostname for macs show FQDN #21

Open
bbrendon opened this issue Oct 26, 2022 · 5 comments
Open

hostname for macs show FQDN #21

bbrendon opened this issue Oct 26, 2022 · 5 comments

Comments

@bbrendon
Copy link

bbrendon commented Oct 26, 2022

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#     

@bbrendon bbrendon changed the title hostname on mac returns FQDN hostname for macs show FQDN Oct 26, 2022
@silversword411
Copy link

Is this a question, statement, or request?

@bbrendon
Copy link
Author

Here is another crazy hostname that appears.

jnguyen-macbook-pro.domain.com.beta.tailscale.net

@wh1te909
Copy link
Member

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

@bbrendon
Copy link
Author

bbrendon commented 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]

@silversword411
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants