LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Reverse DNS information doesn't work (https://www.linuxquestions.org/questions/linux-server-73/reverse-dns-information-doesnt-work-4175438356/)

crazydoc 11-22-2012 08:06 PM

Reverse DNS information doesn't work
 
I have e-mail & DNS server in my office.

Running DNS service looks OK, but reverse DNS information cannot be seen from outside of the office.

My OS is CentOS 5.8 with default BIND package.

/etc/named.conf
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};

zone "." IN {
type hint;
file "/etc/db.cache";
};

zone "example.com" IN {
type master;
file "/var/named/named.example.com";
};

zone "87.654.321.in-addr.arpa" {
type master;
file "/var/named/named.example.rev";
};


/var/named/named.example.com
$ORIGIN .
$TTL 86400
example.com. IN SOA ns1.example.com. root.example.com. (
2012112216 ; modified by Kevin
3600
1800
1800000
86400 )
example.com. IN A 123.456.78.90
MX 0 mail.example.com.
NS ns1.example.com.
$ORIGIN example.com.

localhost.example.com. IN A 127.0.0.1
mail.example.com. IN A 123.456.78.90
MX 0 mail
ns1.example.com. IN CNAME mail
webmail.example.com. IN CNAME mail
ftp.example.com. IN A 123.456.78.90
www.example.com. IN A 123.456.78.90
example.com. IN TXT "v=spf1 ip4:123.456.78.90 -all"

/var/named/named.example.rev
$TTL 86400
@ IN SOA ns1.example.com. root.example.com. (
2012112216 ; modified by Kevin
3600
1800
1800000
86400 )

87.654.321.in-addr.arpa. IN NS ns1.example.com.
09.87.654.321.in-addr.arpa. IN PTR mail.example.com.

------------------------------------------------
When I try 'nslookup' in the office, all looks OK.
But, I tried the same from the other network, reverse information cannot be seen.

Could anybody check my configuration and advise?

Thanks in advance.

abhandari 11-23-2012 03:22 AM

Quote:

Originally Posted by crazydoc (Post 4835174)
I have e-mail & DNS server in my office.

Running DNS service looks OK, but reverse DNS information cannot be seen from outside of the office.

My OS is CentOS 5.8 with default BIND package.

/etc/named.conf
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};

zone "." IN {
type hint;
file "/etc/db.cache";
};

zone "example.com" IN {
type master;
file "/var/named/named.example.com";
};

zone "87.654.321.in-addr.arpa" {
type master;
file "/var/named/named.example.rev";
};


/var/named/named.example.com
$ORIGIN .
$TTL 86400
example.com. IN SOA ns1.example.com. root.example.com. (
2012112216 ; modified by Kevin
3600
1800
1800000
86400 )
example.com. IN A 123.456.78.90
MX 0 mail.example.com.
NS ns1.example.com.
$ORIGIN example.com.

localhost.example.com. IN A 127.0.0.1
mail.example.com. IN A 123.456.78.90
MX 0 mail
ns1.example.com. IN CNAME mail
webmail.example.com. IN CNAME mail
ftp.example.com. IN A 123.456.78.90
www.example.com. IN A 123.456.78.90
example.com. IN TXT "v=spf1 ip4:123.456.78.90 -all"

/var/named/named.example.rev
$TTL 86400
@ IN SOA ns1.example.com. root.example.com. (
2012112216 ; modified by Kevin
3600
1800
1800000
86400 )

87.654.321.in-addr.arpa. IN NS ns1.example.com.
09.87.654.321.in-addr.arpa. IN PTR mail.example.com.

------------------------------------------------
When I try 'nslookup' in the office, all looks OK.
But, I tried the same from the other network, reverse information cannot be seen.

Could anybody check my configuration and advise?

Thanks in advance.

Follow this link properly:
http://www.ispexperts.com.np/?page_id=310
My be u need to set "allow-querry <your_network>;" inside named.conf

r0b0 11-23-2012 04:19 AM

Have you been delagated to be the name server of the reverse zone by your ISP? What does "host -t ns 87.654.321.in-addr.arpa" return when executed from outside of your network? If it returns something else than the address of your DNS server (such as your ISP's DNS server) you need to ask them to either a) host your entries in their DNS server or b) delegate the zone to your DNS server.

crazydoc 11-23-2012 08:17 PM

Hi r0b0,

I tried what you informed and got the other information than as I expected.
Mmm... I may need to ask my domain service provider.

Thanks a lot!.


All times are GMT -5. The time now is 08:07 AM.