macOS: problem reported, machine name

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

November 18, 2025 - 2:46 PM

WAPT Version: 2.6.1.17567
Server OS: Debian 12
Administration Machine OS: Windows Server 2022
Target OS: macOS 26.0 and 14.5

Hello,

since installing the new version, in the administration console some of our Macs are showing up with a name in the format "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" while others are not (same OS).

Each Mac has a hostname in the format "macXX.local".

Have you encountered this issue before?

Thank you
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 18, 2025 - 3:13 PM

Hello,

is the Mac on the domain?

Does a /etc/krb5.keytab file exist?
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

November 18, 2025 - 3:20 PM

Hello Simone,

no, the Macs are not domain-bound and the /etc/krb5.keytab file is indeed present.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 18, 2025 - 3:28 PM

On a Mac, it would be interesting to do a:

Code: Select all

wapt-get shell
>>> from setuphelpers import *
>>> get_hostname_and_domain()
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 18, 2025 - 3:31 PM

I think you'll end up here in any case:

Code: Select all

import socket
socket.getfqdn()
Who performs an IP-to-name resolution to obtain a fully qualified domain name (FQDN)?

We would need to change that in wapt but it's more of a headache than it seems.

In your case, logically you should retrieve only the hostname, but without the domain.
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

November 18, 2025 - 3:37 PM

sfonteneau wrote: Nov 18, 2025 - 3:28 PM On a Mac, it would be interesting to do a:

Code: Select all

wapt-get shell
>>> from setuphelpers import *
>>> get_hostname_and_domain()
I placed the orders but received an error message:

Traceback (most recent call last):
File "<console> ", line 1, in<module>
NameError: name 'get_hostname_and_domain' is not defined
Last edited by clafon on Nov 18, 2025 - 3:38 PM, edited 1 time.
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

November 18, 2025 - 3:37 PM

sfonteneau wrote: Nov 18, 2025 - 3:31 PM In your case, logically you should retrieve only the hostname, but without the domain
So I would need to remove ".local" from the hostname?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 19, 2025 - 2:04 PM

Just try doing this:

`import socket
socket.getfqdn()


` to verify the theory
clafon
Messages: 109
Registration: Nov 06, 2024 - 10:56

November 19, 2025 - 5:22 PM

Good evening,

here is the output when running the command:
wapt-get shell
import socket
socket.getfqdn()
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa'
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

November 20, 2025 - 09:16

So that's right,

it's the socket library integrated into Python that's communicating, see:
https://docs.python.org/3/library/socke ... et.getfqdn.

Here it's the reverse IP address resolution that's working...

try putting a "." in the hostname to see if that works, but I doubt it will.

Simon
Answer