Hopefully easy DNS question

philstone

macrumors 6502
Original poster
Oct 13, 2008
403
10
Jersey, Channel Isles
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
92
0
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.
 
Comment

chrfr

macrumors G3
Jul 11, 2009
9,188
3,166
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?
 
Comment

philstone

macrumors 6502
Original poster
Oct 13, 2008
403
10
Jersey, Channel Isles
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!
 
Comment

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)
 
Comment

unplugme71

macrumors 68030
May 20, 2011
2,792
744
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.
 
Comment

SlCKB0Y

macrumors 68040
Feb 25, 2012
3,139
203
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.
 
Comment

unplugme71

macrumors 68030
May 20, 2011
2,792
744
Earth
A records can point to multiple IP addresses...

----------



It's not at all strange to ping a domain name.
I never said it could. I said it can point to either. The load balance device has the list of IP's (hosts) to distribute.
 
Comment

Similar threads

  • mgobluejz
2
Replies
2
Views
739
  • AceC
11
Replies
11
Views
787
  • trumpp
3
Replies
3
Views
709
Replies
4
Views
683
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.