Beginner - Bind - Bad dotted quad

Matus UHLAR - fantomas uhlar at fantomas.sk
Mon Sep 24 10:01:34 UTC 2018


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]


More information about the bind-users mailing list