StevenMycheals

Q: DNS Problem....

Hi !

 

We have a 10.6 server running DNS and mail (and more).  We have another 10.8 server where a script invokes 'sendmail' (upon interesting events).  Things work.

 

We're now setting up a new 10.9 server to run only DNS.  The DNS setup is identical to the 10.6 server.  We stopped DNS on the 10.6 server and started it on the 10.9 server.  Updated the router settings, rebooted everything.  Everything works except one thing: 'sendmail' on the 10.8 server no longer works.  (All other sending/receiving of email from inside and outside the company is working fine.)  An example bounce:

 

Action: failed

Status: 5.4.4

Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error

  for name=company.com type=AAAA: Host found but no data record of

  requested type

 

Indeed we don't have an AAAA record, but why should it be looking for one?

 

If you need more feel free to ask !

 

Thanks in advance

Mac Pro, OS X Server, Mac OS X 10.9 Server 3.12

Posted on Jul 17, 2014 10:03 AM

Close

Q: DNS Problem....

  • All replies
  • Helpful answers

  • by Linc Davis,

    Linc Davis Linc Davis Jul 17, 2014 2:30 PM in response to StevenMycheals
    Level 10 (208,000 points)
    Applications
    Jul 17, 2014 2:30 PM in response to StevenMycheals

    Don't set

    inet_protocols = all

     

    in main.cf unless you have a working IPv6 DNS set up.

  • by Camelot,

    Camelot Camelot Jul 17, 2014 9:40 PM in response to StevenMycheals
    Level 8 (47,305 points)
    Mac OS X
    Jul 17, 2014 9:40 PM in response to StevenMycheals

    Indeed we don't have an AAAA record, but why should it be looking for one?

     

    Why? Because your system has an IPv6 address and IPv6 is preferred in many cases.

     

    If you don't want to setup DNS for IPv6 (which is what the AAAA records relate to) then you should turn off IPv6 in the server's Network preferences.

  • by Linc Davis,

    Linc Davis Linc Davis Jul 17, 2014 9:53 PM in response to Linc Davis
    Level 10 (208,000 points)
    Applications
    Jul 17, 2014 9:53 PM in response to Linc Davis

    You cannot, of course, turn off IPv6 in the Network preference pane, nor would you want to if you could. You would edit the main.cf file to set

     

    inet_protocols = ipv4

  • by StevenMycheals,

    StevenMycheals StevenMycheals Jul 18, 2014 5:43 AM in response to Linc Davis
    Level 1 (4 points)
    iTunes
    Jul 18, 2014 5:43 AM in response to Linc Davis

    Dear Mr. Davis

     

    Can I know where is located the file main.cf in Mac OS X 10.9 Server please

     

    Thank you very much

     

    P.S. Do you have a place you recommended that explain how to build a IPv6 setup ?

  • by Linc Davis,

    Linc Davis Linc Davis Jul 18, 2014 12:48 PM in response to StevenMycheals
    Level 10 (208,000 points)
    Applications
    Jul 18, 2014 12:48 PM in response to StevenMycheals

    You must have a working DNS service, and the server's hostname must match its fully-qualified domain name. To confirm, select the server by name in the sidebar of the Server application window, then select the Overview tab. Click the Edit button on the Host Name line. On the Accessing your Server sheet, Domain Name should be selected. Change the Host Name, if necessary. The server must have at least a three-level name (e.g. "server.yourdomain.com"), and the name must not be in the ".local" top-level domain, which is reserved for Bonjour.

    The primary DNS server used by the server must be 127.0.0.1 (that is, itself) unless you're using another server for internal DNS. The only DNS server set on the clients should be the internal one, which they should get from DHCP if applicable.