Project

General

Profile

Bug #4573

Unbound omits 0 from host overrides where "0" (zero) is hostname.

Added by Kill Bill about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DNS Resolver
Target version:
Start date:
04/02/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

# dig 0.test.invalid @192.168.0.254

; <<>> DiG 9.9.6-P1 <<>> 0.test.invalid @192.168.0.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40894
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;0.test.invalid.                        IN      A

;; AUTHORITY SECTION:
.                       86400   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2015040200 1800 900 604800 86400

;; Query time: 321 msec
;; SERVER: 192.168.0.254#53(192.168.0.254)
;; WHEN: Thu Apr 02 15:43:24 CEST 2015
;; MSG SIZE  rcvd: 118

Works just fine with other numbers:

; <<>> DiG 9.9.6-P1 <<>> 1.test.invalid @192.168.0.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48846
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;1.test.invalid.                        IN      A

;; ANSWER SECTION:
1.test.invalid.         3600    IN      A       1.2.3.4

;; Query time: 0 msec
;; SERVER: 192.168.0.254#53(192.168.0.254)
;; WHEN: Thu Apr 02 15:44:31 CEST 2015
;; MSG SIZE  rcvd: 59

Associated revisions

Revision 052e4ee8 (diff)
Added by Chris Buechler about 4 years ago

Don't omit hosts specified as "0". Ticket #4573

Revision 6d457361 (diff)
Added by Chris Buechler about 4 years ago

Don't omit hosts specified as "0". Ticket #4573

Revision 35ff72fa (diff)
Added by Chris Buechler about 4 years ago

0 could be valid for hostname aliases too. Ticket #4573

History

#1 Updated by Chris Buechler about 4 years ago

  • Subject changed from Unbound ignored host overrides with "0" (zero) as hostname. to Unbound omits 0 from host overrides where "0" (zero) is hostname.
  • Status changed from New to Resolved
  • Affected Version changed from 2.2.1 to All

It was omitting the 0 because that if check was wrong for values of 0. fixed, along with the same issue where alias name is 0.

#2 Updated by Kill Bill about 4 years ago

Fixed, thanks.

Also available in: Atom PDF