Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Courier DNS lookup error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 1:45 pm    Post subject: Courier DNS lookup error Reply with quote

Hi guys, I need your help again. As some of you remember for the crack I set up my U60 using courier and the production mail server how to. All went well eventually just a few problems when the emerge didnt include everything that was needed and some lack of knowlege my end with DNS records etc etc!

I now have a new problem. I have just come back after a long trip away and checked the server and see that no mail is getting out. Checking the logs I see that:

Sep 16 13:01:21 [courieresmtp] id=000F661C.432AC186.000028EC,from=<markpayne@nospam>,addr=<mark@nospam>: DNS lookup failed.
Sep 16 13:01:21 [courieresmtp]id=000F661C.432AC186.000028EC,from=<markpayne@nospam>,addr=<mark@npspam>,status: deferred

I can ping happily so I know there are no DNS problems so I am not sure what exactly has happened. The only thing that has changed with my setup is that at one point I changed my ADSL router from a Safecom 4 port to a Dlink 4 port wireless. I have both web server and smtp server set up in port forwarding (and I am sure this worked after I installed this router....)

Anybody got any ideas? I dont want to start the courier set up again (going away again on Tuesday for another long trip)

Cheers,

Mark
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 3:19 pm    Post subject: Reply with quote

I have tried sending mail in to no avail. Using DNSstuff and DNSReport it says that it cannot connect though looking at the log it tries:

Sep 16 14:44:16 [courieresmtpd] error,relay=66.36.241.109,from=<TestedFrom-62.55.138.60@DNSreport.com>: 417 DNS lookup failure: DNSreport.com. Try again lat
er.

I am confused...!!!!
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 5:31 pm    Post subject: Reply with quote

I have emerged bind-utils and am trying to use dig.

If I just do:

dig markpayne.net

Quote:
; <<>> DiG 9.2.5 <<>> markpayne.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6699
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;markpayne.net. IN A

;; ANSWER SECTION:
markpayne.net. 85789 IN A 62.55.138.60

;; AUTHORITY SECTION:
markpayne.net. 172189 IN NS ns33.1and1.co.uk.
markpayne.net. 172189 IN NS ns34.1and1.co.uk.

;; ADDITIONAL SECTION:
ns33.1and1.co.uk. 85970 IN A 195.20.224.152
ns34.1and1.co.uk. 85970 IN A 212.227.123.27

;; Query time: 25 msec
;; SERVER: 192.168.8.2#53(192.168.8.2)
;; WHEN: Fri Sep 16 17:03:41 2005
;; MSG SIZE rcvd: 128


but if I do a:

dig MX markpayne.net

Quote:
; <<>> DiG 9.2.5 <<>> MX markpayne.net
;; global options: printcmd
;; connection timed out; no servers could be reached


Last edited by marky9074 on Fri Sep 16, 2005 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Fri Sep 16, 2005 6:09 pm    Post subject: Reply with quote

Hmm try it this way
dig markpayne.net MX

Quote:

dig markpayne.net MX

; <<>> DiG 9.2.5 <<>> markpayne.net MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3100
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;markpayne.net. IN MX

;; ANSWER SECTION:
markpayne.net. 86400 IN MX 10 mx01.1and1.co.uk.
markpayne.net. 86400 IN MX 10 mx00.1and1.co.uk.

Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 7:47 pm    Post subject: Reply with quote

No still the same....something really odd here...

Quote:
; <<>> DiG 9.2.5 <<>> markpayne.net MX
;; global options: printcmd
;; connection timed out; no servers could be reached


Can someone dig medwaynavigation.co.uk as this is the domain that I am trying to get mail working for....
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Fri Sep 16, 2005 8:05 pm    Post subject: Reply with quote

Hmmm
here you go

Quote:
dig medwaynavigation.co.uk

; <<>> DiG 9.2.5 <<>> medwaynavigation.co.uk
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61615
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;medwaynavigation.co.uk. IN A

;; ANSWER SECTION:
medwaynavigation.co.uk. 60 IN A 62.55.138.60

;; Query time: 257 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Fri Sep 16 14:56:27 2005
;; MSG SIZE rcvd: 56
-----------------------------------------
and
dig medwaynavigation.co.uk ANY

; <<>> DiG 9.2.5 <<>> medwaynavigation.co.uk ANY
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55521
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;medwaynavigation.co.uk. IN ANY

;; ANSWER SECTION:
medwaynavigation.co.uk. 86155 IN NS ns3.afraid.org.
medwaynavigation.co.uk. 86155 IN NS ns4.afraid.org.
medwaynavigation.co.uk. 86155 IN NS ns1.afraid.org.
medwaynavigation.co.uk. 86155 IN NS ns2.afraid.org.

;; Query time: 2 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Fri Sep 16 15:00:31 2005
;; MSG SIZE rcvd: 122
-------------------------------------------------------------------
and lastly

dig medwaynavigation.co.uk MX

; <<>> DiG 9.2.5 <<>> medwaynavigation.co.uk MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41879
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;medwaynavigation.co.uk. IN MX

;; ANSWER SECTION:
medwaynavigation.co.uk. 3600 IN MX 10 mail.medwaynavigation.co.uk.

;; Query time: 20 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Fri Sep 16 15:02:31 2005
;; MSG SIZE rcvd: 61






I mean it should work eather way 'dig type name' or 'dig name type' but when you ask for a type on the command line the DSN server fails?
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 8:15 pm    Post subject: Reply with quote

Thats right, this seems to be what the problem is...

Courier is doing DNS lookups and its failing, the same as I am manually doing look ups using dig and its failing (but only on MX records), so what on earth has happened to my server!
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Fri Sep 16, 2005 8:40 pm    Post subject: Reply with quote

what type DNS/cache is runnig at SERVER: 192.168.8.2#53(192.168.8.2) ?
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 8:46 pm    Post subject: Reply with quote

Thats my local IP for my router! A D-Link DSL-G604T. There is very little in the way of DNS settings in its firmware, just DNS relay (auto/manual/off)....
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Fri Sep 16, 2005 8:56 pm    Post subject: Reply with quote

Ok so it probably just forwording the request.
what happen with this
Code:

dig @ns1.afraid.org medwaynavigation.co.uk MX
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Sep 16, 2005 9:20 pm    Post subject: Reply with quote

At least I got something this time...

Quote:
; <<>> DiG 9.2.5 <<>> @ns1.afraid.org medwaynavigation.co.uk MX
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56944
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5

;; QUESTION SECTION:
;medwaynavigation.co.uk. IN MX

;; ANSWER SECTION:
medwaynavigation.co.uk. 3600 IN MX 10 mail.medwaynavigation.co.uk.

;; AUTHORITY SECTION:
medwaynavigation.co.uk. 86400 IN NS ns1.afraid.org.
medwaynavigation.co.uk. 86400 IN NS ns2.afraid.org.
medwaynavigation.co.uk. 86400 IN NS ns3.afraid.org.
medwaynavigation.co.uk. 86400 IN NS ns4.afraid.org.

;; ADDITIONAL SECTION:
mail.medwaynavigation.co.uk. 3600 IN A 62.55.138.60
ns1.afraid.org. 1800 IN A 70.84.177.198
ns2.afraid.org. 1800 IN A 204.11.167.30
ns3.afraid.org. 1800 IN A 69.28.135.46
ns4.afraid.org. 1800 IN A 70.86.10.35

;; Query time: 120 msec
;; SERVER: 70.84.177.198#53(70.84.177.198)
;; WHEN: Fri Sep 16 20:55:02 2005
;; MSG SIZE rcvd: 223
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Fri Sep 16, 2005 9:28 pm    Post subject: Reply with quote

Ok so there is something funny about the way the router dose its forwording.
things I'd do

1. check for a firmware update to the router.
2. change your /etc/resolv.conf file to point to one of the these

;; ADDITIONAL SECTION:
ns1.afraid.org. 1800 IN A 70.84.177.198
ns2.afraid.org. 1800 IN A 204.11.167.30
ns3.afraid.org. 1800 IN A 69.28.135.46
ns4.afraid.org. 1800 IN A 70.86.10.35

3. set up a local DNS-cache
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Mon Sep 19, 2005 9:25 pm    Post subject: Reply with quote

Been real busy but eventually upgraded the firmware...no difference. Got to go away again tomorrow so guess it will have to wait until I get back.

Thanks for all your help, might have known it was actually the router and nothing to do with my U60 installation..

Cheers,

Mark
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Tue Sep 20, 2005 1:14 pm    Post subject: Reply with quote

I'm in Moscow now and on my way to Yushno-Sakhalinsk! With regards to the resolve.conf shouldnt I just point this to a DNS server from my ISP rather than a name server of one of my domains (I have many domains with 1and1 but that one used for a test is with freeDNS - afraid.org). Am I being dumb here? I will post on a couple of D-Link forums about this issue as it seems a bit stupid really....

At the risk of sounding dumb and getting flamed, how to I set up a local-dns cache? I will do some searching when I eventually get to work, but if anyone can point me in the the right place in the interim it would be much appreciated.

Thanks for all your help,

Mark
Back to top
View user's profile Send private message
m_sqrd
Guru
Guru


Joined: 18 Jul 2005
Posts: 367

PostPosted: Tue Sep 20, 2005 2:29 pm    Post subject: Reply with quote

Happy travels.

yes I did not mean you could not uses your ISP DNS in your resolver file, I just said use the others temporarily as I knew that that work and you could reach them.



here is a few links that will help.

http://gentoo-wiki.com/HOWTO_Setup_a_DNS_Server_with_DJBDNS

http://www.fefe.de/djbdns/split-horizon

good luck and post if you have problems.
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Thu Sep 22, 2005 12:44 am    Post subject: Reply with quote

It appears that there are issues with this router! I had seen some of them before, but not with my installation.

http://forums.broadbandbuyer.co.uk/forum_posts.asp?TID=3611&PN=1&TPN=1
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Thu Sep 22, 2005 11:02 pm    Post subject: Reply with quote

D-Link have actually accepted a DNS problem with the router (albeit when using Itunes)

ftp://ftp.dlink.co.uk/dsl_routers_modems/dsl-g604t/DSL-G604T-Setup_For_Itunes_v5.pdf
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Fri Oct 28, 2005 3:00 pm    Post subject: Reply with quote

Hi guys, got back today and changed my resolv.conf to have my two DNS servers from my ISP plus my router. Restarted and now I can get mail in...but none out. If I reply to a mail that comes in and look in the logs it says time out then goes to deferred... my dig works OK now as well..

Mark
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Mon Oct 31, 2005 2:44 pm    Post subject: Reply with quote

Guys, one thing I have not considered is that my ISP is now blocking port 25 (outwards), is there any way I can check this or manually initiate a connection so that I can see what is going on?

Cheers,

Mark
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Mon Oct 31, 2005 9:13 pm    Post subject: Reply with quote

OK I found out how to telnet into the SMTP server to check (ironically from the Microsoft web site)..

So I telnet in:

telnet servername 25

Connect up straight away with the laptop and PC, but goes pear shaped with the Sun. It seems to be doing the DNS look ups now:

marky root # telnet mx00.1and1.co.uk 25
Trying 212.227.15.169...
Trying 212.227.15.186...
Trying 212.227.15.134...
Trying 212.227.15.150...
telnet: Unable to connect to remote host: Connection timed out

Can anybody help, as I am on the verge of buying a new router!

Cheers,
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Wed Nov 02, 2005 8:45 pm    Post subject: Reply with quote

Bought a new router....

Safecom SWAMRU-54108

........worked straight away!

DONT BUY A DLINK!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum