<
allan@wilsonss.com>: Host or domain name not found. Name service error for
name=mail.wilsonss.com type=A: Host not found
Final-Recipient: rfc822; allan@wilsonss.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
for name=mail.wilsonss.com type=A: Host not found
I want mail to be deliverable to username@wilsonss.com and outgoing mail works fine. I have setup DNS on this server and here is what I get if I check my entries with dig:
[root@mail named]# dig mx wilsonss.com
; <<>> DiG 9.2.4 <<>> mx wilsonss.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;wilsonss.com. IN MX
;; ANSWER SECTION:
wilsonss.com . 38400 IN MX 10 mail.wilsonss.com.
;; AUTHORITY SECTION:
wilsonss.com. 38400 IN NS 192.168.0.3.wilsonss.com.
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Mar 4 11:42:32 2007
;; MSG SIZE rcvd: 77
Here is what I have in named.conf(this is just the last section, there is more in the file):
[root@mail named]# more /etc/named.conf
zone "wilsonss.com" {
type master;
file "/var/named/wilsonss.com.hosts";
};
Here is what is in my wilsonss.com.hosts file:
[root@mail named]# more wilsonss.com.hosts
$ttl 38400
@ IN SOA mail.wilsonss.com. root.mail.wilsonss.com. (
2006110200
10800
3600
604800
38400 )
@ IN NS 192.168.0.3
@ IN MX 10 mail.wilsonss.com.
@ IN A 192.168.0.3
I put an entry in to my hosts file:
192.168.0.3 mail.wilsonss.com mail
And here is what I have in resolv.conf(.3 is mail server and .1 is router)
nameserver 192.168.0.3
nameserver 192.168.0.1
I am hosting the domain name with godaddy and set the mx record on their dns server to point to my routers public ip address. I know I am missing something obvious but I can't figure it out. Thanks for any help.
Allan