Can't resolve aliases from /etc/hosts

Bug #787460 reported by Tim Bultmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pdnsd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: pdnsd

Hi,

i can't resolve aliases from /etc/hosts with pdnsd.
The following text is my approach:

$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 foo.bar foobar

$ pdnsd-ctl empty-cache
$ pdnsd-ctl config

$ dig foo.bar
; <<>> DiG 9.7.0-P1 <<>> foo.bar
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44330
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;foo.bar. IN A

;; ANSWER SECTION:
foo.bar. 86400 IN A 127.0.1.1

;; AUTHORITY SECTION:
foo.bar. 86400 IN NS localhost.

;; ADDITIONAL SECTION:
localhost. 86400 IN A 127.0.0.1
localhost. 86400 IN AAAA ::1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 24 09:54:51 2011
;; MSG SIZE rcvd: 133

$ dig foobar
; <<>> DiG 9.7.0-P1 <<>> @127.0.0.1 foobar
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 20006
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;foobar. IN A

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 24 11:58:46 2011
;; MSG SIZE rcvd: 26

pdnsd 1.2.7-par-1.1

Description: Ubuntu 10.04 LTS
Release: 10.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.