PDA

View Full Version : error message in mail log


cruz
19th June 2008, 01:03
I just chaged from static ip with a adsl to comcast static ip. I went throught the setup from debian etch perfect setup guide for refrance and changed the ip address that was used with the dsl to the statics comcast gave me, (the dsl was a 192.168.1.155 address because I used portforwarding on my rouder)then I chaged the ips in ispconfig to my static comcast gave me. I connected the box to there modom/router and I can ping the sites and get the corect ip address, but the mail is giving me this error. status=deferred (Host or domain name not found. Name service error for name=domain.com type=MX: Host not found, try again)When I did a dig mx domain.com i get this. server1:~# dig mx mysite4webhosting.com
;; reply from unexpected source: 75.XXX.XXX.214#53, expected 192.168.1.1#53
;; reply from unexpected source: 75.XXX.XXX.214#53, expected 192.168.1.1#53
;; reply from unexpected source: 75.XXX.XXX.214#53, expected 192.168.1.1#53
can some please help me? thanks you
P.S. I just noticed that after the dig command it tells me ( connection timed out; no servers could be reached) Sorry for missing this info. Also the server is on 213 not 214. 214 is comcast I guess gateway.

falko
19th June 2008, 17:52
What's in your named.conf, and what's the output of ifconfig?

cruz
19th June 2008, 19:13
I changed the box back to a 192 168 #. I have setup a router to the comcast device.Here is the name config options {
pid-file "/var/run/bind/run/named.pid";
directory "/etc/bind";
auth-nxdomain no;
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." {
type hint;
file "db.root";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "db.local";
};

zone "231.147.75.in-addr.arpa" {
type master;
file "pri.231.147.75.in-addr.arpa";
};


zone "stocktongoodsamaritan.org" {
type master;
file "pri.stocktongoodsamaritan.org";
};
zone "apostolichearts.com" {
type master;
file "pri.apostolichearts.com";
};
zone "mysite4webhosting.com" {
type master;
file "pri.mysite4webhosting.com";
};

ifconfig resuts /var/lib/named/etc/bind$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:80:5F:F0:4A
inet addr:192.168.1.45 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:80ff:fe5f:f04a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:810 errors:0 dropped:0 overruns:0 frame:0
TX packets:357 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66800 (65.2 KiB) TX bytes:100614 (98.2 KiB)

falko
20th June 2008, 14:37
This might help: http://archives.devshed.com/forums/networking-100/how-do-i-avoid-reply-from-unexpected-source-message-1212423.html

cruz
21st June 2008, 01:42
No, but you can spoof the IP addresses associated with your own
nameserver names by defining a master zone for each of those names, e.g.
the world may know ns1.example.com as x.x.x.x (the VIP address) but your
own nameservers could know it as y.y.y.y (because you have a
"ns1.example.com" master zone with a y.y.y.y A record at its apex) thus
bypassing the load-balancer and its troublesome NAT'ing behavior. It's a
bit kludgey, but I haven't come up with anything better yet How do I go about spoofing the ip as he is talking about? Baby steps for my learning mind please. thanks