Project

General

Profile

Actions

Bug #4573

closed
KB

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

Bug #4573: Unbound omits 0 from host overrides where "0" (zero) is hostname.

Added by Kill Bill over 11 years ago. Updated over 11 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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

CB Updated by Chris Buechler over 11 years ago Actions #1

  • 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.

KB Updated by Kill Bill over 11 years ago Actions #2

Fixed, thanks.

Actions

Also available in: Atom