LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2010, 02:57 AM   #16
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56

The PTR record must resolve correctly in both directions. Say I did a reverse lookup on a connecting IP of 1.2.3.4 and it gave me 'PTR mail.spongebob.squarepants'. I should then be able to do a forward A lookup for mail.spongebob.squarepants and get 1.2.3.4 as the answer.

I suspect your PTR record text does not resolve back to the same IP that is connecting to hotmail - but it's a guess.
 
Old 03-19-2010, 05:38 AM   #17
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
I don't really get what it outputs when I nslookup the ; first it says
 
Old 03-19-2010, 05:47 AM   #18
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
I don't really get what it outputs when I nslookup the ip it says;

Quote:
Dns request timed out.
Time out was 2 seconds.
*** The server name of the address 192.168.2.1 can not be found: Timed out
*** Default servers can not be used
Server: UnKnown
Address: 192.168.2.1

Name: www.mydom.com
Address: the.ip.address
And for mail.mydom.com;

Quote:
Dns request timed out.
Time out was 2 seconds.
*** The server name of the address 192.168.2.1 can not be found: Timed out
*** Default servers can not be used
Server: UnKnown
Address: 192.168.2.1

Untrusted Answer:
Name: mail.mydom.com
Address: the.ip.address
I translated the non-English parts so they may not be perfect.
I also had to try restarting the system cuz some company software used only within the company that uses the mysql server on the server was very very slow and nothing changed after the restart. I'm getting close to an end here

Last edited by caksin; 03-19-2010 at 08:37 AM.
 
Old 03-19-2010, 06:21 AM   #19
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Don't throw in the towel just yet :-)

I don't have any serious issues with the DNS PTR records - google refuses to list AUTH NS for the reverse zone, but using my ISP I get ns1/ns2.tr.net.tr as auth for PTR. It's not blacklisted anywhere obvious that would give you issues. Hotmail may have some local policy kicking you and you'd need to examine the error message in the logs/bounce message to get a handle on that.

My advice would be if you don't have a specific need to run your own AUTH dns servers then don't! I've had to run my own because my domain registrar did not support DKIM and I needed it, but I have other hosts where the registrars own name servers are perfect for 10 or so domains (it gets a PITA using a web interface much beyond that). This should resolve the issue for your users - which is the end game we want here. My own suspicion is they are unable to reach your name servers from time to time. When I queried google for your MX it had cached the result, but hung at:
Quote:
Authoritative answers can be found from:
This could be an issue for external clients because they may not have a cached result for one of your domains, and with the result for the auth server timing out I would imagine they would get the phenomena you are experiencing.

If you want to troubleshoot this more can you reply to the email I sent you to 'postmaster' with the name of one of the troublesome domains and I'll see if I can recreate this externally :-)
 
Old 03-19-2010, 08:15 AM   #20
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
Ok I won't : )
Here is the result when I tried to reply to your email using outlook;

Quote:
This is the mail system at host mail.mydom.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<your@email.address.washere>: Host or domain name not found. Name service error for
name=your.domain.here type=A: Host found but no data record of requested type
And this is the company where we have our server;

Quote:
but using my ISP I get ns1/ns2.tr.net.tr as auth for PTR.
 
Old 03-19-2010, 08:25 AM   #21
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
You know what, when I do;
Quote:
nslookup -querytype=PTR the.ip
I get;
Quote:
...things... and name = www.mydom.com
But if I do;
Quote:
nslookup -querytype=PTR the.ip google.ip
I get;
Quote:
...things... and name = mail.mydom.com
Could this be causing some confusion in the dns servers in between somewhere? But then again, that slow mysql connection should be due to something else I guess, since it's done directly through the ip.
 
Old 03-19-2010, 08:30 AM   #22
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Nothing in my logs, but this much I know:- I don't get *ANY* IP address for ns1.ixxxxxo.com or ns2.ixxxxxo.com from outside. Just the SOA marker. Looks like you failed to set up entries for ns1/ns2 in the zone. I appreciate you want to protect your privacy but without seeing the named.conf and affected zone files I can only give you general pointers
 
1 members found this post helpful.
Old 03-19-2010, 09:43 AM   #23
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
Here's the named.conf;
Quote:
zone "localhost" {
type master;
file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};

zone "c.b.a.IN-ADDR.ARPA" { (Where the ip is a.b.c.d)
type master;
file "/etc/bind/zones/master/a.b.c.rev";
};

zone "mydom.com" {
type master;
file "/etc/bind/zones/master/mydom.com.db";
};
other domains go listed down
So there's nothing about the nameservers here, n1-ns2.mydom.com, should there be?
The master zone files are as follows;
Quote:
a.b.c.rev
mydom.com.db
and other domains go listed down
And this is the domain for which name servers are defined - the file called mydom.com.db ;

Quote:
;
; BIND data file for mydom.com
;
$TTL 604800
@ IN SOA mydom.com. admin.mydom.com. (
2007011510
7200
120
2419200
604800 )
;
@ IN NS ns1.mydom.com.
@ IN NS ns2.mydom.com.
mydom.com. IN MX 10 mail.mydom.com.
mydom.com. IN A the.ip
www IN CNAME mydom.com.
mail IN A the.ip
ftp IN CNAME mydom.com.
mydom.com. IN TXT "v=spf1 ip4:the.ip a mx ~all"
mail.mydom.com. IN TXT "v=spf1 a -all"
subdom.mydom.com. IN A the.ip

the.ip.mydom.com. IN PTR mail.mydom.com
mail.mydom.com IN A the.ip
Anything missing or extra?
 
Old 03-19-2010, 10:00 AM   #24
caksin
Member
 
Registered: Jul 2008
Location: Ankara, Türkiye
Distribution: Ubuntu, Pardus
Posts: 47

Original Poster
Rep: Reputation: 16
I had searched aaa looott when I was first looking for such examples, hope these help others.
I was told by some god - I mean guy that I'm missing A records for the ns1 and ns2 records in the mydom.com.db file like these;
Quote:
ns1 IN A the.ip
ns2 IN A the.ip

Last edited by caksin; 03-19-2010 at 10:00 AM. Reason: typo
 
  


Reply

Tags
dns, server, lame, bind, sample, conf, named, entry, resolving



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse DNS on Bind9 Taleya Linux - Networking 1 11-04-2009 11:39 AM
bind9 problem : windows client can't use DNS service and12345 Linux - Server 2 12-08-2008 05:49 PM
DNS Server (BIND9) mpgram Linux - Server 1 02-22-2008 10:36 AM
Bind9 DNS Issue b00gz Linux - Networking 10 07-15-2006 11:32 AM
BIND9 slave DNS problem HELP!!! mlu Linux - Networking 2 05-05-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration