Hopefully easy DNS question

Discussion in 'Mac OS X Server, Xserve, and Networking' started by philstone, Jan 7, 2015.

  1. philstone macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #1
    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
     
  2. Wirbowsky macrumors member

    Joined:
    Mar 12, 2010
    Location:
    Belgium
    #2
    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.
     
  3. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #3
    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?
     
  4. philstone thread starter macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #4
    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!
     
  5. jared_kipe macrumors 68030

    jared_kipe

    Joined:
    Dec 8, 2003
    Location:
    Seattle
    #5
    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)
     
  6. philstone thread starter macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #6
  7. dyt1983, Jan 8, 2015
    Last edited: Jun 1, 2015

    dyt1983 macrumors 65816

    Joined:
    May 6, 2014
    Location:
    USA USA USA
    #7
    edit: To remove personally identifying info not relevant to the conversation.
     
  8. libardoram macrumors newbie

    Joined:
    Sep 14, 2011
    Location:
    Beijing
    #8
    Create a empty A record

    I suggest yu create an empty A record pointing to yourdomain.com
     
  9. unplugme71 macrumors 68030

    Joined:
    May 20, 2011
    Location:
    Earth
    #9
    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.
     
  10. SlCKB0Y macrumors 68040

    SlCKB0Y

    Joined:
    Feb 25, 2012
    Location:
    Sydney, Australia
    #10
    A records can point to multiple IP addresses...

    ----------

    It's not at all strange to ping a domain name.
     
  11. unplugme71 macrumors 68030

    Joined:
    May 20, 2011
    Location:
    Earth
    #11
    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.
     
  12. SlCKB0Y macrumors 68040

    SlCKB0Y

    Joined:
    Feb 25, 2012
    Location:
    Sydney, Australia
    #12
    What I meant was not necessarily. The DNS server can perform this task if DNS round-robin is being used.
     

Share This Page