AW: Beginner - Bind - Bad dotted quad

Maurizio Caloro maurizio at caloro.ch
Mon Sep 24 21:49:16 UTC 2018


Hello Matus and Thanks!

After setup from scratch now me Bind DNS Server are running
Ok .... i have see my problem, Thanks for your Help! This was realy good!

cat db.caloro
;
; BIND data file for local loopback interface
;
$TTL    604800
@ IN SOA caloro.local. root.caloro.local. (
              3         ; Serial
         604800         ; Refresh
          86400         ; Retry
        2419200         ; Expire
         604800 )       ; Negative Cache TTL
        IN NS ns.caloro.local.
ns      IN A 192.168.1.159
x200    IN A 192.168.1.159
pfsense IN A 192.168.1.1
hp4000  IN A 192.168.1.12
mauristation10  IN A 192.168.1.104

cat db.calororeverse
m at X200:/etc/bind$ cat db.calororeverse
;
; BIND data file for local loopback interface
;
$TTL    604800
@ IN SOA caloro.local. root.caloro.local. (
              3         ; Serial
         604800         ; Refresh
          86400         ; Retry
        2419200         ; Expire
         604800 )       ; Negative Cache TTL
        IN NS ns.caloro.local.
159     IN PTR ns.caloro.local
159     IN PTR x200
1       IN PTR pfsense
12      IN PTR hp4000
104     IN PTR mauristation10
m at X200:/etc/bind$

m at X200:/etc/bind$ ping hp4000
PING hp4000.caloro.local (192.168.1.12) 56(84) bytes of data.
64 bytes from hp4000.1.168.192.in-addr.arpa (192.168.1.12): icmp_seq=1
ttl=60 time=1.30 ms
64 bytes from hp4000.1.168.192.in-addr.arpa (192.168.1.12): icmp_seq=2
ttl=60 time=1.35 ms

m at X200:/etc/bind$ nslookup hp4000
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   hp4000.caloro.local
Address: 192.168.1.12


-----Ursprüngliche Nachricht-----
Von: bind-users <bind-users-bounces at lists.isc.org> Im Auftrag von Matus
UHLAR - fantomas
Gesendet: Montag, 24. September 2018 12:02
An: bind-users at lists.isc.org
Betreff: Re: Beginner - Bind - Bad dotted quad

On 24.09.18 05:40, Maurizio Caloro wrote:
>n at X200:~$ nslookup 192.168.1.12
>12.1.168.192.in-addr.arpa name = hp4000.fin.local.
>
>n at X200:~$ host 192.168.1.12
>12.1.168.192.in-addr.arpa domain name pointer hp4000.fin.local.
>
>n at X200:~$ ping hp4000
>ping: hp4000: Name or service not known

this is local resolution problem. Your resolver is not configured to search
in "fin.local" domain. put "fin.local" into searchlist in /etc/resolv.conf.

>Sep 23 10:53:34 X200 named[2989]: zone 0.in-addr.arpa/IN: loaded serial 
>1 Sep 23 10:53:34 X200 named[2989]: zone 255.in-addr.arpa/IN: loaded 
>serial 1 Sep 23 10:53:34 X200 named[2989]: zone 192.in-addr.arpa/IN: 
>loaded serial 1 Sep 23 10:53:34 X200 named[2989]: zone 
>1.168.192.in-addr.arpa/IN: loaded serial 2 Sep 23 10:53:34 X200 
>named[2989]: dns_rdata_fromtext: /etc/bind/db.fin:17:
>near 'hp4000.': bad dotted quad

look at:
https://askubuntu.com/questions/673783/bad-dotted-quad-dns

When I copied and pasted the above text into Vim, I could see that Line 13
contains a ZERO WIDTH NO-BREAK SPACE just preceding the 1.1.1.1 IP address
so the address is not considered to be a valid IPv4 address (Line 14 also
contains the same character).


>Sep 23 10:53:34 X200 named[2989]: zone x200.fin.local/IN: loading from 
>master file /etc/bind/db.fin failed: bad dotted quad Sep 23 10:53:34 
>X200 named[2989]: zone x200.fin.local/IN: not loaded due to errors.

note that the zone you are trying to load is "x200.fin.local" and thus has
nothing to do with "fin.local" zone.

>n at X200:~$ cat /etc/bind/db.fin
>;
>; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA 
>x200.fin.local. root.fin.local. (
>2 ; Serial
>604800 ; Refresh
>86400 ; Retry
>2419200 ; Expire
>604800 ) ; Negative Cache TTL
>;
>@ IN NS x200.fin.local.
>@ IN A 192.168.1.159
>x200 IN A 192.168.1.159
>www IN A 192.168.1.159
>pfsense IN A 192.168.1.1
>hp4000 IN A 192.168.1.12

there's apparently invalid space character on the line above.

>nstation10 IN A 192.168.1.104

--
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Your mouse has moved. Windows NT will now restart for changes to take to
take effect. [OK] _______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users



More information about the bind-users mailing list