Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 2, 2013, 01:22 PM   #1
BryanSchmiedele
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
DNS Problems in Mac OS X Server

Just started a new job and am in charge of managing the Mac Server. I have lots of Mac experience, but very little Mac OS X Server experience.

I used my MBP to access the server (which is a headless Mac Mini) and after I did so the settings were pretty messed up. In particular the Computer Name, Host Name, and DNS name were wrong or missing. I was able pretty easily to get the first two fixed, but not DNS.

I can reach the server via the IP, but NOT the domain name. (We were able to do this before I messed things up).

When I run

cat /etc/resolv.conf | grep nameserver

I get 4.2.2.2

which is the forwarding server

I have tried turning DHCP on and off, never works.

When I run

cat /etc/resolv.conf | grep nameserver

I get

nameserver[0] : 4.2.2.2
nameserver[0] : 150.2.0.30
nameserver[0] : 4.2.2.2

The 150.2.0.30 is what I have for the DNS entery in the Network Control Panel

When I run changeip -checkhostname under sudo I get


macserver:~ bryanschmiedeler$ sudo
Password:


Primary address = 192.168.x.x


Current HostName = server.example.com


The DNS hostname is not available, please repair DNS and re-run this tool.


dirserv:success = "success"

Any help would be GREATLY Appreciated!

Bryan
BryanSchmiedele is offline   0 Reply With Quote
Old Aug 2, 2013, 01:41 PM   #2
chrfr
macrumors 68020
 
Join Date: Jul 2009
If the server's IP address is 192.168.x.x, that will never resolve properly using external DNS and you'll need to run your own DNS and point the server to that.
chrfr is offline   0 Reply With Quote
Old Aug 4, 2013, 05:49 AM   #3
Kasalic
macrumors regular
 
Join Date: Jan 2011
What other servers are on this network? Which of these, if any, are providing internal DNS services?
Kasalic is offline   0 Reply With Quote
Old Aug 5, 2013, 08:53 AM   #4
BryanSchmiedele
Thread Starter
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
Changed DNS Server

Quote:
Originally Posted by Kasalic View Post
What other servers are on this network? Which of these, if any, are providing internal DNS services?
I changed the DNS to 127.0.0.1 and some things that weren't working are now working.

The major problem still is this: if I enter the IP of the server from a web browser I can authenticate and get in. If I enter the IP/profilemanger I can get to that. However, if I enter our domain or the domain folled by /profilemanager, I get nowhere.

On my MBP, I cannot access the server from the Finder, either in the sidebar or by using the Go To Server command, bugt I CAN access it if I go directly to Screen Sharing and enter the IP and my username and password.

I am thinking my reverse DNS is wrong - or is it that when I go to Go To Finder I am using a different ID and password (the one on my MBP is not the same as the one on the Server).

Any other help would also be appreciated.

The Mac server is in the DMZ, if that helps.

Bryan
BryanSchmiedele is offline   0 Reply With Quote
Old Aug 5, 2013, 08:58 AM   #5
alexrmc92
macrumors regular
 
Join Date: Feb 2013
what server is your MBP setup to use for DNS?
alexrmc92 is offline   0 Reply With Quote
Old Aug 5, 2013, 09:12 AM   #6
BryanSchmiedele
Thread Starter
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
DNS for my MacBook Pro

It has 4 DNS settings, all starting with 150. or 151.

I added the IP of the Mac Server but that didn't help.

I might not have mentioned that the Mac OS X server is in the DMZ. When my MBP is getting only WiFi (and outside the network completely) then I CAN see the server in my Finder Sidebar and access it just fine. It is when I switch back to the internal network that I am having problems.

I really appreciate your help.
BryanSchmiedele is offline   0 Reply With Quote
Old Aug 12, 2013, 08:56 AM   #7
BryanSchmiedele
Thread Starter
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
OK this is fixed now!

Quote:
Originally Posted by BryanSchmiedele View Post
It has 4 DNS settings, all starting with 150. or 151.

I added the IP of the Mac Server but that didn't help.

I might not have mentioned that the Mac OS X server is in the DMZ. When my MBP is getting only WiFi (and outside the network completely) then I CAN see the server in my Finder Sidebar and access it just fine. It is when I switch back to the internal network that I am having problems.

I really appreciate your help.
My network guy made some changes and I reran the

sudo changeip -checkhostname

command and now I am all clear.

But I STILL cannot get profiles installed. I email the profiles, and when the user gets them and tries to install them they get an error saying the server can't be reached.
BryanSchmiedele is offline   0 Reply With Quote
Old Aug 12, 2013, 01:29 PM   #8
Consultant
macrumors G5
 
Consultant's Avatar
 
Join Date: Jun 2007
Quote:
Originally Posted by BryanSchmiedele View Post
My network guy made some changes and I reran the

sudo changeip -checkhostname

command and now I am all clear.

But I STILL cannot get profiles installed. I email the profiles, and when the user gets them and tries to install them they get an error saying the server can't be reached.
Are they off site?

Give the user the external IP (not the 192.x). Log into the server, go to whatismyip or a similar service.
Consultant is offline   0 Reply With Quote
Old Aug 12, 2013, 02:39 PM   #9
alexrmc92
macrumors regular
 
Join Date: Feb 2013
Quote:
Originally Posted by BryanSchmiedele View Post
My network guy made some changes and I reran the

sudo changeip -checkhostname

command and now I am all clear.

But I STILL cannot get profiles installed. I email the profiles, and when the user gets them and tries to install them they get an error saying the server can't be reached.
Then either your DNS or firewall is not configured properly. When iPhone attempts to load the profile and connect to the server it can't find it. Your iPhone needs to be using the mac server as it's DNS server and you need proper DNS lookups for you network entered. I can't really explain or help any better than that without seeing the server myself.
alexrmc92 is offline   0 Reply With Quote
Old Aug 13, 2013, 08:29 AM   #10
BryanSchmiedele
Thread Starter
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
Quote:
Originally Posted by alexrmc92 View Post
Then either your DNS or firewall is not configured properly. When iPhone attempts to load the profile and connect to the server it can't find it. Your iPhone needs to be using the mac server as it's DNS server and you need proper DNS lookups for you network entered. I can't really explain or help any better than that without seeing the server myself.
This makes sense to me. Our server is in a DMZ. This morning we are going to take it out of the DMZ and test, so we can confirm that that is the issue. This should tell us if it is network issue or server issue.

DNS is not running on our server right now. I was told we don't need to run it. I wonder though, if we were running it.
BryanSchmiedele is offline   0 Reply With Quote
Old Aug 13, 2013, 08:43 AM   #11
alexrmc92
macrumors regular
 
Join Date: Feb 2013
Quote:
Originally Posted by BryanSchmiedele View Post
This makes sense to me. Our server is in a DMZ. This morning we are going to take it out of the DMZ and test, so we can confirm that that is the issue. This should tell us if it is network issue or server issue.

DNS is not running on our server right now. I was told we don't need to run it. I wonder though, if we were running it.
Unless you configure profile manager to use the public IP address of the server instead of its domain / host name, then you will need DNS running on the server. Either that or you need to buy a domain that matches your mac servers host name and have a third party manage the DNS.

I've kinda said this a few times already. If you would like i can explain it over the phone as well. If you want we can organize that over PM.
alexrmc92 is offline   0 Reply With Quote
Old Aug 13, 2013, 11:39 AM   #12
BryanSchmiedele
Thread Starter
macrumors member
 
Join Date: Apr 2010
Location: Overland Park, KS
Quote:
Originally Posted by alexrmc92 View Post
Unless you configure profile manager to use the public IP address of the server instead of its domain / host name, then you will need DNS running on the server. Either that or you need to buy a domain that matches your mac servers host name and have a third party manage the DNS.

I've kinda said this a few times already. If you would like i can explain it over the phone as well. If you want we can organize that over PM.
I would really appreciate your help. My email address is

bryanschmiedeler at me.com.

You can send me your phone number there and a time to call, or email me and I will send you my phone number. I am in the central time zone, and am out until 1 PM. Any time after that I am available. And I really really appreciate this!
BryanSchmiedele is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
DNS problems in OS X server (Mountain Lion) mherz Mac OS X Server, Xserve, and Networking 0 Apr 20, 2014 07:06 AM
Mail problems related to DNS server courageworf OS X Mavericks (10.9) 0 Oct 28, 2013 05:59 PM
safari extension that changes DNS server schpongo Mac Programming 0 Jul 17, 2013 04:22 AM
DNS server question inscrewtable Mac Basics and Help 11 Jul 15, 2013 01:45 PM
DNS Lion Server kingdonk Mac OS X Server, Xserve, and Networking 0 Jun 18, 2012 09:07 AM

Forum Jump

All times are GMT -5. The time now is 10:19 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC