MDHerz

Q: DNS problems in OS X server (Mountain Lion)

Hello !


I am quite experienced in Mac OS, but not so much in OS Server. A few months ago I installed OS Server (Mountain Lion) on a Mac Mini which is dedicated for these server tasks. Yesterday I was changing the settings of my Host Name, changing both the name and the network type from local to private. (host name before was server.local, now changed to server.mycompany-abc.private)


Obviously, I should have know, this did not go so well. There must be something wrong in my DNS settings. I can now reach my server under its IP address, but not under its new host name.


Here are some settings:


under Server / DNS it gives me:

forwarding servers: 2 forwarding servers

192.168.1.1

and a MAC address (i guess of my router)


and then three records:

two primary Zone with my new host name as machine and name server

and a reverse zone with 192.168.1.104 and reverse mapping


Under System Preferences / Network it gives me the following:

IP address: 192.168.1.104

Router: 192.168.1.1

DNS Server: 127.0.0.1


in Terminal, when typing nslookup hostname, or nslookup ipaddress

it gives me:

server: 127.0.0.1

address: 127.0.0.1#53

*** server can't find hostname: NXDOMAIN


when typing nslookup 192.168.1.104

it gives me the correct host name


with cat /etc/resolv.conf | grep name server, it gives me 127.0.0.1


I guess the problem is between the different DNS settings. i.e. in system preferences giving 127.0.0.1 as DNS server and in Server / DNS giving 192.168.1.1 and the MAC address as DNS server.


I tried changing the setting in system preferences / Network to 192...etc. but this made things worse. Now in Terminal when typing nslookup 192.168.1.104 it returns "name = server.home." which is wrong.


If, on the other hand, I change the Server / DNS settings to 127.0.0.1 as forwarding server, then nothings works anymore.



Where's the mistake??? What am I doing wrong???

Sorry for the long post.

Any help is REALLY GREATLY appreciated!


thanks!!

Manuel

Mac mini, OS X Server

Posted on Apr 20, 2014 11:23 AM

Close

Q: DNS problems in OS X server (Mountain Lion)

  • All replies
  • Helpful answers

  • by Linc Davis,Solvedanswer

    Linc Davis Linc Davis Apr 20, 2014 12:19 PM in response to MDHerz
    Level 10 (208,000 points)
    Applications
    Apr 20, 2014 12:19 PM in response to MDHerz

    You must have a working DNS service, and the server's hostname must match its fully-qualified domain name. To confirm, select the server by name in the sidebar of the Server application window, then select the Overview tab. Click the Edit button on the Host Name line. On the Accessing your Server sheet, Domain Name should be selected. On the Accessing your Server sheet, change the Host Name, if necessary. The server must have at least a three-level name (e.g. "server.yourdomain.com"), and the name must not be in the ".local" top-level domain, which is reserved for Bonjour.

    The primary DNS server used by the server must be 127.0.0.1 (that is, itself) unless you're using another server for internal DNS. The only DNS server set on the clients should be the internal one, which they should get from DHCP if applicable.