Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Zombie Changes to Domain/Host Name in Mail Settings Window

For the second time since setting it up, the domain name has changed from "domain.com" to "local", and the host name has changed from "myserver.domain.com" to "myserver.local".

This tends to screw up my mail services.

I cannot determine why this would change, by itself, without any external intervention from anyone.

Suggestions?

Intel iMacs, Mac Mini's, Macbook Pro, iPhone 3G, Mac OS X (10.6), Snow Leopard Server

Posted on Apr 14, 2010 11:18 PM

Reply
16 replies

May 25, 2010 6:14 AM in response to kasiotis

Usual triggers for this reversion to .local domains are DNS server issues, or DNS referencing issues, or a failure to have the DNS servers in the DHCP information, or having disparate DNS servers referenced.

(10.6.3 slightly changed the rules around DNS server references when multiple servers are specified; the whole list is now tried, which is better and also worse than the older behavior.)

I just worked a case for a client after a 10.6.3 upgrade that involved apparent changes in the parsing rules and an incompatibility with an existing set of DNS configuration zone files (or a weirdness where Server Admin wasn't writing entirely valid DNS, I didn't revert and check that). That trigger was tracked down using the DNS server gonzo, err, debug diagnostics. That was also manifesting a domain change, but it was also showing slowdowns.

What does the following shell command report?

sudo changeip -checkhostname

May 30, 2010 7:56 AM in response to MrHoffman

Thanks for your reply!

The server is configured with static IP and running DHCP, DNS and mail, connectet to a D-Link router (the router also acting as a firewall). The DNS is configured with forwarder IP-addresses to the ISP and Google. Domain/hostname is changed from server.ljungh.net to server.local in postfix/main.cf (and other config files) and triggered if internet connection is lost by rebooting the router (or if internet connection to ISP is down for some other reason). Everything is working fine as long as the internet is up and running. The server is not acting as a firewall or multiple-network-controller.

Output from changeip -checkhostname:

Primary address = 192.168.0.196

Current HostName = server.ljungh.net
DNS HostName = server.ljungh.net

The names match. There is nothing to change.
dirserv:success = "success"

Output from dig server.ljungh.net:

; <<>> DiG 9.6.0-APPLE-P2 <<>> server.ljungh.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61515
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;server.ljungh.net. IN A

;; ANSWER SECTION:
server.ljungh.net. 10800 IN A 192.168.0.196

;; AUTHORITY SECTION:
ljungh.net. 10800 IN NS server.ljungh.net.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun May 30 16:45:38 2010
;; MSG SIZE rcvd: 65

Output from dig -x 192.168.0.196:

; <<>> DiG 9.6.0-APPLE-P2 <<>> -x 192.168.0.196
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27573
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;196.0.168.192.in-addr.arpa. IN PTR

;; ANSWER SECTION:
196.0.168.192.in-addr.arpa. 10800 IN PTR server.ljungh.net.

;; AUTHORITY SECTION:
0.168.192.in-addr.arpa. 10800 IN NS server.ljungh.net.

;; ADDITIONAL SECTION:
server.ljungh.net. 10800 IN A 192.168.0.196

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun May 30 16:46:01 2010
;; MSG SIZE rcvd: 105

May 30, 2010 9:42 AM in response to KennethL

The following presumes you are using your Mac OS X Server box as your LAN DNS. On the Mac OS X Server box, please check your System Preferences > Network > select the network connection > Advanced > DNS setting, and see see what address is listed for the DNS server. I'd guess you have 192.168.0.196 there, possibly more than one address. If you do have that IP address listed, then try switching that to (just) the entry 127.0.0.1; to the localhost address. (Unless you're running a secondary DNS server on your LAN, and then you can add that to the list, too.)

May 30, 2010 10:20 AM in response to MrHoffman

Yes, that sounds likely however I don't have a switch to test with, it's a home server so if there's a work around without buying new hardware I'd prefer that route. I tried using a script using launchd that is set to detect any changes to the main.cf file and replace it with a correct one which works great if a manually change the main.cf but for some reason is not triggered when the system changes the main.cf.

The primary zone name in Server Admin is set to ljungh.net. (fully qualified) and nameserver hostname set to server.ljungh.net. (fully qualified).

Where do I find the default domain in system preferences? There's a search domains which is set to ljungh.net

Thanks for the help.

Message was edited by: KennethL

May 30, 2010 1:40 PM in response to KennethL

'*' as an alias to server.ljungh.net. (without quotes)


As a test, remove that record.

dlink as a machine with IP 192.168.0.1 (the router)
mail as an alias to server.ljungh.net.
server as a machine with IP 192.168.0.196
www as an alias to server.ljungh.net.


Ok, an A record, a CNAME, an A for the server itself, and a CNAME, respective.

May 30, 2010 3:55 PM in response to KennethL

Add CNAMEs for the Apache virtual domains.

The asterisk wildcard and the domain name alias has traditionally worked, but I've encountered issues with the DNS implementation circa 10.6.3; whether the change is considered a bug that's been fixed or a feature that's been broken, donno. Interestingly, the syntax is locked out in recent Server Admin.

Zombie Changes to Domain/Host Name in Mail Settings Window

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