Hello there,
I wonder if someone can help me out. I'm slightly tearing my hair out.
I seem not to be able to get DNS to work correctly on OSX Server 10.6 (and I had the exact same problem on 10.5 within the same network). I am running Server 10.6 on an XServe. Both DNS and DHCP are enabled. The XServe has a static IP address of 192.168.0.2. The network's Netgear router, with internet connection, has a static IP of 192.168.0.1. The rest of the IP addresses are dished out by DHCP on the XServe. This works correctly; any client machine in the network picks up its IP address from the DHCP server, and all the network information is correctly populated. Client machines thus have their IP address, default gateway, router and DNS information correctly provided by the DHCP server on the XServe.
From each client machine it looks like this:
IP: 192.168.0.x
Default Gateway: 255.255.255.0
DNS: 192.168.0.2
Router: 192.168.0.1
The XServer is the DNS server at 192.168.0.2. As I say, each client machine is aware of this. There are no other DNS servers on the network. The information configured in the DNS settings on the XServe are as follows [obviously I've replaced the real names for security reasons]:
I have a Primary Zone - charlieatlantic.lan
The XServe is called 'server'. I have thus set a DNS record for 'server' within that Primary Zone so that it points to 192.168.0.2
This automatically set up the reverse DNS, so that:
server.charlieatlantic.lan points to 192.168.0.2
If I open terminal, and type 'ping server.charlieatlantic.com', it resolves correctly to 192.168.0.2 and the pings return as they should.
Then I have set up the DNS forwarders with the two DNS server addresses which were provided by the ISP. (btw I know these work correctly, as if I enter either of them (rather than the server at 192.168.0.2) as the DNS server address on any client machine they will resolve, for example, http://www.google.com, and I have internet access.)
From what I can gather, and from all the setup guides I've looked at, I'm not doing anything wrong. However, I have two problems:
1) Unreliability: if I ping server.charlieatlantic.lan either on the server, or on any client machine connected to the same network (and thus taking its information from the DHCP), I only intermittently have it resolve to 192.168.0.2. Sometimes it works, sometimes it does not.
2) No internet domain name will resolve from either the XServe or any client machine. Both have their DNS servers set to the XServe 192.168.0.2
It seems that the DNS forwarder addresses are not working correctly in DNS. I really want the XServe to be the sole DNS provider, and for the external DNS servers I have listed in the forwarder box to deal with anything for which the XServe is not authoritative. In other words, I want each client machine to have only 192.168.0.2 as its DNS server and to send, say, google.com to that machine which then sends that request out to the external DNS servers provided by my ISP.
I know that I can tell DHCP to dish out more than one DNS server, and perhaps have all three listed. This, though, in my experience is unreliable and messy.
Finally, not sure if this is relavent, but the hardware configuration is that each device is connected to a switch. So the router, XServe, and each client machine are connected in directly to a switch.
Any ideas where I should start troubleshooting?
Thanks!
charlie
I wonder if someone can help me out. I'm slightly tearing my hair out.
I seem not to be able to get DNS to work correctly on OSX Server 10.6 (and I had the exact same problem on 10.5 within the same network). I am running Server 10.6 on an XServe. Both DNS and DHCP are enabled. The XServe has a static IP address of 192.168.0.2. The network's Netgear router, with internet connection, has a static IP of 192.168.0.1. The rest of the IP addresses are dished out by DHCP on the XServe. This works correctly; any client machine in the network picks up its IP address from the DHCP server, and all the network information is correctly populated. Client machines thus have their IP address, default gateway, router and DNS information correctly provided by the DHCP server on the XServe.
From each client machine it looks like this:
IP: 192.168.0.x
Default Gateway: 255.255.255.0
DNS: 192.168.0.2
Router: 192.168.0.1
The XServer is the DNS server at 192.168.0.2. As I say, each client machine is aware of this. There are no other DNS servers on the network. The information configured in the DNS settings on the XServe are as follows [obviously I've replaced the real names for security reasons]:
I have a Primary Zone - charlieatlantic.lan
The XServe is called 'server'. I have thus set a DNS record for 'server' within that Primary Zone so that it points to 192.168.0.2
This automatically set up the reverse DNS, so that:
server.charlieatlantic.lan points to 192.168.0.2
If I open terminal, and type 'ping server.charlieatlantic.com', it resolves correctly to 192.168.0.2 and the pings return as they should.
Then I have set up the DNS forwarders with the two DNS server addresses which were provided by the ISP. (btw I know these work correctly, as if I enter either of them (rather than the server at 192.168.0.2) as the DNS server address on any client machine they will resolve, for example, http://www.google.com, and I have internet access.)
From what I can gather, and from all the setup guides I've looked at, I'm not doing anything wrong. However, I have two problems:
1) Unreliability: if I ping server.charlieatlantic.lan either on the server, or on any client machine connected to the same network (and thus taking its information from the DHCP), I only intermittently have it resolve to 192.168.0.2. Sometimes it works, sometimes it does not.
2) No internet domain name will resolve from either the XServe or any client machine. Both have their DNS servers set to the XServe 192.168.0.2
It seems that the DNS forwarder addresses are not working correctly in DNS. I really want the XServe to be the sole DNS provider, and for the external DNS servers I have listed in the forwarder box to deal with anything for which the XServe is not authoritative. In other words, I want each client machine to have only 192.168.0.2 as its DNS server and to send, say, google.com to that machine which then sends that request out to the external DNS servers provided by my ISP.
I know that I can tell DHCP to dish out more than one DNS server, and perhaps have all three listed. This, though, in my experience is unreliable and messy.
Finally, not sure if this is relavent, but the hardware configuration is that each device is connected to a switch. So the router, XServe, and each client machine are connected in directly to a switch.
Any ideas where I should start troubleshooting?
Thanks!
charlie