DNS internal server not pinging properly?

I had a DNS server issue so I cleared out the named dir and created new db files. The server is showing up properly in the Server App but when I ping mail.internalserver.com, it comes back with the external address. I ran a dig on it and it showed the DNS server as 4.2.2.1 instead of 192.168.1.2. Any idea why it's ignoring the internal DNS I setup? No errors in the logs. It just doesn't ping using the internal server.

Mac OS X (10.7.2)

Posted on Apr 1, 2012 9:31 PM

Reply
11 replies

Apr 2, 2012 10:35 AM in response to GreatGeek

There isn't enough data in your post to answer your question.


Running a DNS server means nothing as far as resolution unless your clients (including the DNS client running on the machine itself) are configured to use it for resolution.


In other words, if your server's address is 192.168.1.2 then you need to add 192.168.1.2 (or, equally, 127.0.0.1) as the DNS server to use in System Preferences -> Network.


If your network settings are configured to use 4.2.2.1 (or anything else for that matter), then that's the server that will be used, regardless of the fact there's a DNS server running on this machine.

Apr 2, 2012 12:01 PM in response to Camelot

I'm rolling out the DNS server via DHCP to all of the workstations and I've got the static DNS setup on the server itself. I have the 4.2.2.1 setup as a secondary for answering outside requests. That's the part I can't figure out. Why it won't use the internal first? If I remove the secondary DNS from the server, it doesn't break down anything and throws the server offline.


That's why I'm starting to think the server DNS isn't working at all. It's running, it's setup with appropriate A records, it just doesn't answer.

Apr 2, 2012 5:06 PM in response to GreatGeek

Well it just got more interesting. I have two companies in this office and I have the following setup:


Master DNS -

Company1

mail.company1.com 192.168.1.2

www.company1.com XX.XX.XX.XX (external IP)

server.company1.com 192.168.1.2


Company2

mail.company2.com 192.168.1.2

www.company2.com XX.XX.XX.XX (2nd external IP)

server.company2.com 192.168.1.2


Company 1 WORKS internally/locally. Company 2 does not.


Settings are identical for both companies, except for the external IPs for their web hosting. No idea why server.company2.com and mail.company2.com won't break down locally at all. Any ideas on this?

Apr 2, 2012 5:13 PM in response to GreatGeek

There still isn't enough information in your post to answer your question.


Let's start with:


Company 1 WORKS internally/locally. Company 2 does not.


What do you mean by 'WORKS'?


Do you mean clients can resolve the addresses? access the services?

Are you talking about internal clients? external clients?

Where are you checking from?


As for your earlier post;


I have the 4.2.2.1 setup as a secondary for answering outside requests


This is not correct. If you ever want to resolve internal addresses then your clients should ONLY use your internal DNS server. That server should be able to resolve non-local domains through recursion (preferred) or forwarding, so this doesn't prevent your internal clients from resolving remote domains, but expecting to put a public DNS server in their list of resolvers is not the way to do it.

Apr 2, 2012 5:36 PM in response to Camelot

There is plenty of information to help with this. "Works," of course, means it resolves the address correctly to the local address. I'm not sure what else it could possibly mean. I don't have it open to the outside world.


It's a good idea, IMO, to have the external DNS in case the internal DNS fails. At least that way people inside the office could get to external pages. Since it doesn't breakdown server.company2.com as internal OR external, that is a moot point at this juncture anyway.

Apr 2, 2012 8:27 PM in response to GreatGeek

"Works," of course, means it resolves the address correctly to the local address. I'm not sure what else it could possibly mean.


Then you've clearly never worked in technical support 🙂

A typical support caller will use the term ' it doesn't work' for everything from 'I can't find the power switch' to 'why doesn't XYZ app correctly factor operators of the second quanitzation of QFT'.


As such, it isn't clear to me that your clients are able to resolve the addresses you expect, or if they are, they get the results you expect.


Indeed, in one post you say:


mail.company2.com 192.168.1.2

www.company2.com XX.XX.XX.XX (2nd external IP)


But go on to say:


No idea why server.company2.com and mail.company2.com won't break down locally at all


Which seems to contradict what you're saying, since it appears that mai.company2.com is resolving the internal address (which is what I assume you mean by 'break down' since that's not a common DNS-related term).


Even so, it's still possible that the addresses resolve as expected, but you can't access the site in a browser. For 99.9% of users, not being able to resolve the hostname and not being able to load the site in the browser amount to the same thing and would still fall in that 'doesn't work' classification. However, that could be the result of DNS failure, or web server misconfiguration, or port forwarding in your router, or any number of other things.


So, therefore, I don't think it inappropriate to ask for clarification.


It's a good idea, IMO, to have the external DNS in case the internal DNS fails

Unfortunately you're wrong there 🙂

First off, your internal server shouldn't fail. Secondly, if you're that worried, setup a second internal server to hand out to your clients. Having clients use external DNS will, at some point, result in more calls because users will be using that external server without even realizing it, and things won't work as they expect.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

DNS internal server not pinging properly?

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