Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Deep_Thought

macrumors 6502
Original poster
Oct 13, 2008
451
31
Hi all,

Running Mavericks DNS server, need to resolve the domain to an internal IP address - setup as follows:

Domain - domainname.com
Mail Server - mail.domainname.com

If I ping mail.domainname.com I get a response, however I am unable to ping domainname.com which is causing us some mail server issues...

Is there a way to create a DNS record in Mavericks server to resolve dominate.com to an IP address?

Cheers!

Phil
 

Wirbowsky

macrumors member
Mar 12, 2010
94
1
Belgium
I have no experience in Apple DNS servers but I find strange to ping a domain name.

Normally you will always ping a host. A domain does not corresponds to a specific host. A domain cannot be resolved to an IP address.

Your DNS client (on the server) should send all query to a DNS server able to answer directly the request for the domain you are using, or to forward to another DNS server.
 

chrfr

macrumors G5
Jul 11, 2009
13,709
7,280
If I ping mail.domainname.com I get a response, however I am unable to ping domainname.com which is causing us some mail server issues...

Is there a way to create a DNS record in Mavericks server to resolve dominate.com to an IP address?l

I believe you are asking the wrong question. What are you actually trying to accomplish? Are you trying to get mail.example.com to receive mail for your domain of example.com?
Did you set up an MX record for the domain to point to mail.example.com?
 

Deep_Thought

macrumors 6502
Original poster
Oct 13, 2008
451
31
Ok so externally, pinging mail.domainname.com gives the same results as pinging dominname.com

Externally that is all set as it should be.

Internally, pinging dominname.com fails to resolve.

The issue is that the (Kerio) mail server address changes from https://mail.domainname.com to https://domainname.com - externally this isn't an issue, internally it is. I am still investigating why the server address changes, but in the meantime I need to get this resolved..

Hope that explains better?

Thanks!
 

jared_kipe

macrumors 68030
Dec 8, 2003
2,967
1
Seattle
You need an A record for both mail.ex.com and ex.com.

Some computer that uses this server for DNS should return an IP address (probably the same one) for both.

From terminal, you can use dig to look up records, this is especially useful if you want to query a specific IP address for the info.

For you,
dig mail.domainname.com @8.8.8.8

and
dig mail.domainname.com @192.168.1.5

^where 192.168.1.5 is the local IP address of the mac server.
SHOULD return different IP addresses because of your split horizon DNS.
Repeat with `domainname.com` and modify the DNS records on the server until you get satisfactory results.

Once you do, if you continue to have problems, then either your computers are NOT set to use that 192.168.1.5 as a DNS source, or are using a cache or local override (e.g. /etc/hosts file)
 

unplugme71

macrumors 68030
May 20, 2011
2,827
754
Earth
I have no experience in Apple DNS servers but I find strange to ping a domain name.

Normally you will always ping a host. A domain does not corresponds to a specific host. A domain cannot be resolved to an IP address.

Your DNS client (on the server) should send all query to a DNS server able to answer directly the request for the domain you are using, or to forward to another DNS server.

A domain name will have an IP address in its A record. It could be the IP of a network device or host. Depending if you load balance or have a single host.

For a single host, you point example.com to the IP of that server. When they go to example.com it shows them the web page of that single host.
 

SlCKB0Y

macrumors 68040
Feb 25, 2012
3,431
557
Sydney, Australia
A domain name will have an IP address in its A record. It could be the IP of a network device or host. Depending if you load balance or have a single host.

A records can point to multiple IP addresses...

----------

I have no experience in Apple DNS servers but I find strange to ping a domain name.

It's not at all strange to ping a domain name.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.