Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Host name is invalid

I have gone through the setup of my newly installed lion server software. I setup a server.example.private host name and have turned on file sharing, and VPN. I bought the server software so I can access my host computer from my IPad and a windows based laptop. When I attempt to setup the profile manager I get to the screen in the directory admin setup that asks for the host name and password, etc. The name and host name are already populated with a generic names and the password fields are blank. Whether I leave the generic fields blank and try and enter a new password or change the generic fields and password to something new I get the same error message every time. It says "Computers host name is invalid. The host name does not resolve to any configured address on this comp. Please ensure the host name is correct. How do I find out what the correct host name is for my computer? Thanks in advance.

Mac Pro, Mac OS X (10.7.4), Lion server

Posted on May 24, 2012 11:30 AM

Reply
Question marked as Best reply

Posted on Feb 4, 2017 1:57 PM

Hello. I am very late to this, but just worked through the issue myself (an amateur, would-be IT support, for my own home and pseudo-business). In my case, the solution, which I don't believe is described her yet, is that, unlike my client computers, my server network configurations were using my airport (router) as my DNS server rather than its own DNS service, which was properly configured.


The result was that a lookup of my server's hostname using my client's network utility, from which I remotely manage my server using Server.app, resolved the hostname correctly. When I reviewed my server's hostname in the Server.app and in its DNS service configurations, everything was also correct. However, when I performed the lookup using my server's network utility, it could not resolve my hostname. The reason was that I had not configured my Server's DNS in in System Preferences>Network>Advanced Settings to use itself rather than the default Airport (router) as its DNS lookup.


I made the change and solved the problem. I hope this can help someone.

14 replies
Question marked as Best reply

Feb 4, 2017 1:57 PM in response to txdodgerfan

Hello. I am very late to this, but just worked through the issue myself (an amateur, would-be IT support, for my own home and pseudo-business). In my case, the solution, which I don't believe is described her yet, is that, unlike my client computers, my server network configurations were using my airport (router) as my DNS server rather than its own DNS service, which was properly configured.


The result was that a lookup of my server's hostname using my client's network utility, from which I remotely manage my server using Server.app, resolved the hostname correctly. When I reviewed my server's hostname in the Server.app and in its DNS service configurations, everything was also correct. However, when I performed the lookup using my server's network utility, it could not resolve my hostname. The reason was that I had not configured my Server's DNS in in System Preferences>Network>Advanced Settings to use itself rather than the default Airport (router) as its DNS lookup.


I made the change and solved the problem. I hope this can help someone.

May 25, 2012 2:44 PM in response to Strontium90

I tried that and was able to get the host name, but I don't understand where I am entering it incorrectly to get the error. Let me back up and give more detail... From the first profile manager setup screen under device management it says disabled. I click on configure and a new window pops up that says "configure device management" and an explanation of what it does, I click next. Then it says "configure network users and groups" with an explanation of that as well. I click next and it goes to "directory administrator" enter account information for the new directory administrator account. This user account will have administrator privileges for managing network uses and groups.

It has 4 boxes to enter the following info...


Name: Directory administrator (default generic name)

Account name: diradmin (default generic name)

Password: (blank)

Verify: (blank)


Whether I leave the top two fields blank or change them and the password I get the error mentioned above after I click next to go to the next step.


The computers host name is invalid.

The host name does not resolve to any configured address of this computer. Please ensure the host name is correct.



I have tried using the host name given by typing host name in terminal and still receive the same errors. Is it possible that something is messed up from changing from a .local name to a .private host name? Thanks for your help.

May 25, 2012 3:23 PM in response to txdodgerfan

Ok, the order of setup is as follows:


1: Make DNS work properly

2: Confirm that DNS is correct

3: Double check that DNS is correct

4: Did I mention DNS?

5: Create OD Master

6: If you server is public facing, buy an SSL cert

7: Set up additional services


Ok, so now to figure out the mess. First, go here http://support.apple.com/kb/DL1528 and get Server Admin Tools. This contains Server Admin which will allow you to easily edit your internal DNS records.


Install the software, run Server Admin, and review the DNS tab. My guess is there is a .local SOA in there and you have changed the server to .private which explains the mismatch.


Get the server to realize who it is first. That is the role of DNS.

May 28, 2012 2:54 PM in response to Strontium90

Thank you for your help Strontium90, I am new to servers and this DNS stuff so bear with me.... I installed the server admin tools and opened admin tools, it automatically poped up with a server.local and the computer name and asked for the password. When I put in the password it loaded the server.local to the list of available servers, I expanded the server.local drop down list and clicked on DNS. Not sure what exactly I was supposed to do from there but under "zones" it has 3 different items listed, a reverse zone which has what appears to be the ip address but the last 4 numbers don't match. And 2 primary zones, one has the server.myserver.private and the other just says myserver.private. Under all 3 of these zones it has .private under everything and nowhere do I see .local except under the list of available servers.


I added the .private server to the list of available servers and checked the zones tab for anything that says .local and nothing can be found there either.


Am I missing something or is there somewhere else I should be looking? Thanks again!

May 29, 2012 2:14 PM in response to txdodgerfan

First the difference in names. .local is the bonjour address. Your .private is a DNS address. While .local can be used for both, it is highly discouraged.


So in Server Admin > DNS, you want to be on the Zones tab. In here you will want to do the following:


Prep: Let's assume you want to define your system as host name server, domain name myfamily.private. So the fully qualified name is server.myfamily.private. Change the examples below to match your needs.


1: Click on Add Zone and select Add Primary Zone (Master)

2: In the Primary Zone name, enter myfamily.private

3: In the Nameservers box click the + button.

4: An entry will appear. The zone colume should read myfamily.private and the Nameserver Hostname will likely grab your Bonjour name and enter <bonjour_name>.myfamily.private. (Please not many items in DNS end in . This is really important do not remove them. If you need to, override the <bonjour_name> and enter server in its place. This way, the Nameserver Hostname colume should say server.myfamily.private.

5: You can Save at this point if you want

6: Now, click on the Add Record button and choose Add Machine (A)

7: When the panel appears enter the following:

Machine name: server.myfamily.private.

IP Address: enter your fixed IP address of the server - this can be found in System Prefs > Network and should be the IP address assigned to the Ethernet port. For illustration, lets assume it is 10.0.0.10

8: Click save

9: If you are paying attention, you will note that a second zone file was created automatically for the reverse zone, It will have a name of 0.0.10.in-addr.arpa. This is the reverse zone file and contains number to name mapping (where the primary zone is name to number).


Now you have two valid zone files. Check your work by doing the following:


1: Open Terminal

2: Enter this command:


nslookup server.myfamily.private 10.0.0.10


3: The result should be 10.0.0.10.

4: Now test again with nslookup 10.0.0.10 10.0.0.10

5: This tests the DNS running on the machine to return the proper results to you.


Now, that it is working, go back into System Preferences > Network and make sure the first DNS server address is the address of your server. This way you will talk to your system first for name resolution. But since your systems is SOA for myfamily.private only, nearly all requests will be past to the public DNS servers provided by your ISP.


If you are good to this point, then go back into Server Admin > DNS and remove all those other zone files.


Ok, if you got this far, then reboot the server.


After the reboot, repeat those nslookup commands and make sure you are still resolving as expected.


Now, to check if there is any lingering damage. Since it sounds like you have not configured any/many services, this is a good thing. So enter this command in Terminal and tell me the results:


sudo changeip -checkhostname


Now, you will need to clean up after your server.

Jun 4, 2012 2:32 PM in response to Strontium90

I finally got around to working on this and I am not totally sure I was successful. I notice that when I made changes to the .priate server in the admin tools it also made the same changes to the .local server data. Is it supposed to do that? I have not setup the bonjour name yet so I don't know what that is or if I even have one? When I got to the step in terminal and put in nslookup server.my family.private and my ip it provided me with this...


Server: my correct ip

Address: my correct ip + #53


Name: server.myfamily.private

Address: my correct ip


When I did the nslookup ip 2x I got the same thing in the server and address fields as above but it did not give me the name and address but had the reverse zone info of, correct ip in-address.arpa. And then name= server.myfamily.private.myfamily.private.


When I did sudo changeip -checkhostname I got the following...


Primary address: = different address than the ip setup in admin tools

Current host name = correct server.myfamily.private name

The DNs host name. Is not available, please repair DNS and re-run this tool.

Disservice:success = "success"

Host name is invalid

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.