LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Server (http://www.linuxquestions.org/questions/forumdisplay.php?f=73)
-   -   reverse mapping checking getaddrinfo for ... failed - POSSIBLE BREAK-IN ATTEMPT (http://www.linuxquestions.org/questions/showthread.php?t=828944)

eteck 08-28-2010 01:24 AM

reverse mapping checking getaddrinfo for ... failed - POSSIBLE BREAK-IN ATTEMPT
 
Hi, I keep getting the error "reverse mapping checking getaddrinfo for fileserver.0.0.10.in-addr.arpa [10.0.0.10] failed - POSSIBLE BREAK-IN ATTEMPT!" in /var/log/auth.log

I have a DNS (bind9) setup on my Linux router with the following config:

Code:

router:~# less /etc/bind/named.conf.local
// Local zone definitions here.

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

zone "mydomain.com" {
      type master;
      file "/etc/bind/db.mydomain.com";
};

router:~# less /etc/bind/db.mydomain.com
;
; BIND data file for local loopback interface
;
$TTL    604800
@      IN      SOA    ns.mydomain.com. hostmaster.mydomain.com. (
                              2        ; Serial
                        604800        ; Refresh
                          86400        ; Retry
                        2419200        ; Expire
                        604800 )      ; Negative Cache TTL
;
@      IN      NS      mydomain.com.
@      IN      A      10.0.0.3
@      IN      AAAA    fe80:0:0:0:0:0:a00:3

;====================================================================
; Network hostnames

www            A      10.0.0.3
fileserver      A      10.0.0.10

router:~# less /etc/bind/db.0.0.10
; BIND reverse data file for local net
;
$TTL    604800
@      IN      SOA    router. root.router. (
                              1        ; Serial
                        604800        ; Refresh
                          86400        ; Retry
                        2419200        ; Expire
                        604800 )      ; Negative Cache TTL
;
@      IN      NS      router.
1      IN      PTR    router

3      IN      PTR    www
10      IN      PTR    fileserver

Any ideas what is wrong?

bathory 08-29-2010 11:02 AM

Hi,

The dns of the NS recorde in reverse zone
Quote:

@ IN NS router.
is not defined. You should change it to mydomain.com. as in the forward zone.
After that increase serial, reload bind and try to resolve an IP address:
Code:

dig -x 10.0.0.10
to see what you get

Regards


All times are GMT -5. The time now is 12:34 AM.