Package: bind9-dnsutils
Version: 1:9.18.0-2

Querying DNS for a particular record type should look roughly like this:

| # nslookup -type=SRV localhost
| Server:               172.27.0.3
| Address:      172.27.0.3#53
| 
| *** Can't find localhost: No answer

That's the case with 1:9.16.27-1~deb11u1 in Debian stable, or
1:9.16.15-1ubuntu1.2 in Ubuntu 21.10, or bind-utils-9.16.27-1.fc35.x86_64 in
Fedora 35.

However, in Debian testing is now a wall of debug logging, which makes the
result really hard to see:

| # nslookup -type=SRV localhost
| main parsing localhost
| addlookup()
| make_empty_lookup()
| make_empty_lookup() = 0x7f76e759e000->references = 1
| looking up localhost
| lock_lookup dighost.c:4184
| success
| start_lookup()
| setup_lookup(0x7f76e759e000)
| resetting lookup counter.
| cloning server list
| clone_server_list()
| make_server(10.111.112.100)
| idn_textname: localhost
| trying origin cockpit.lan
| trying idn origin cockpit.lan
| recursive query
| add_question()
| starting to render the message
| done rendering
| create query 0x7f76e75dd000 linked to lookup 0x7f76e759e000
| dighost.c:2083:lookup_attach(0x7f76e759e000) = 2
| dighost.c:2587:new_query(0x7f76e75dd000) = 1
| do_lookup()
| start_udp(0x7f76e75dd000)
| dighost.c:2936:query_attach(0x7f76e75dd000) = 2
| working on lookup 0x7f76e759e000, query 0x7f76e75dd000
| dighost.c:2981:query_attach(0x7f76e75dd000) = 3
| unlock_lookup dighost.c:4186
| dighost.c:2898:query_attach(0x7f76e75dd000) = 4
| recving with lookup=0x7f76e759e000, query=0x7f76e75dd000, handle=(nil)
| recvcount=1
| have local timeout of 5000
| dighost.c:2847:query_attach(0x7f76e75dd000) = 5
| sending a request
| sendcount=1
| dighost.c:1676:query_detach(0x7f76e75dd000) = 4
| dighost.c:2918:query_detach(0x7f76e75dd000) = 3
| send_done(0x7f76e6427000, success, 0x7f76e75dd000)
| sendcount=0
| lock_lookup dighost.c:2615
| success
| dighost.c:2629:lookup_attach(0x7f76e759e000) = 3
| dighost.c:2648:query_detach(0x7f76e75dd000) = 2
| dighost.c:2649:lookup_detach(0x7f76e759e000) = 2
| check_if_done()
| list empty
| unlock_lookup dighost.c:2652
| recv_done(0x7f76e6427000, success, 0x7f76e6ffa010, 0x7f76e75dd000)
| lock_lookup dighost.c:3577
| success
| recvcount=0
| dighost.c:3589:lookup_attach(0x7f76e759e000) = 3
| before parse starts
| after parse
| next_origin()
| following up localhost
| requeue_lookup()
| clone_lookup()
| make_empty_lookup()
| make_empty_lookup() = 0x7f76e642d000->references = 1
| clone_server_list()
| make_server(10.111.112.100)
| before insertion, init@0x7f76e759e000 -> 0xffffffffffffffff, 
new@0x7f76e642d000 -> 0xffffffffffffffff
| after insertion, init -> 0x7f76e759e000, new = 0x7f76e642d000, new -> (nil)
| dighost.c:1995:_cancel_lookup()
| dighost.c:2669:query_detach(0x7f76e75dd000) = 1
| check_if_done()
| list full
| pending lookup 0x7f76e642d000
| dighost.c:4079:query_detach(0x7f76e75dd000) = 0
| dighost.c:4079:destroy_query(0x7f76e75dd000) = 0
| dighost.c:1634:lookup_detach(0x7f76e759e000) = 2
| dighost.c:4081:_cancel_lookup()
| check_if_done()
| list full
| pending lookup 0x7f76e642d000
| dighost.c:4087:lookup_detach(0x7f76e759e000) = 1
| clear_current_lookup()
| dighost.c:1759:lookup_detach(0x7f76e759e000) = 0
| destroy_lookup
| freeing server 0x7f76e7595400 belonging to 0x7f76e759e000
| start_lookup()
| setup_lookup(0x7f76e642d000)
| idn_textname: localhost
| using root origin
| recursive query
| add_question()
| starting to render the message
| done rendering
| create query 0x7f76e75dd000 linked to lookup 0x7f76e642d000
| dighost.c:2083:lookup_attach(0x7f76e642d000) = 2
| dighost.c:2587:new_query(0x7f76e75dd000) = 1
| do_lookup()
| start_udp(0x7f76e75dd000)
| dighost.c:2936:query_attach(0x7f76e75dd000) = 2
| working on lookup 0x7f76e642d000, query 0x7f76e75dd000
| dighost.c:2981:query_attach(0x7f76e75dd000) = 3
| unlock_lookup dighost.c:4091
| dighost.c:2898:query_attach(0x7f76e75dd000) = 4
| recving with lookup=0x7f76e642d000, query=0x7f76e75dd000, handle=(nil)
| recvcount=1
| have local timeout of 5000
| dighost.c:2847:query_attach(0x7f76e75dd000) = 5
| sending a request
| sendcount=1
| dighost.c:1676:query_detach(0x7f76e75dd000) = 4
| dighost.c:2918:query_detach(0x7f76e75dd000) = 3
| send_done(0x7f76e6427300, success, 0x7f76e75dd000)
| sendcount=0
| lock_lookup dighost.c:2615
| success
| dighost.c:2629:lookup_attach(0x7f76e642d000) = 3
| dighost.c:2648:query_detach(0x7f76e75dd000) = 2
| dighost.c:2649:lookup_detach(0x7f76e642d000) = 2
| check_if_done()
| list empty
| unlock_lookup dighost.c:2652
| recv_done(0x7f76e6427300, success, 0x7f76e6ffa010, 0x7f76e75dd000)
| lock_lookup dighost.c:3577
| success
| recvcount=0
| dighost.c:3589:lookup_attach(0x7f76e642d000) = 3
| before parse starts
| after parse
| printmessage()
| Server:               10.111.112.100
| Address:      10.111.112.100#53
| 
| *** Can't find localhost: No answer
| still pending.
| dighost.c:4079:query_detach(0x7f76e75dd000) = 1
| dighost.c:4081:_cancel_lookup()
| dighost.c:2669:query_detach(0x7f76e75dd000) = 0
| dighost.c:2669:destroy_query(0x7f76e75dd000) = 0
| dighost.c:1634:lookup_detach(0x7f76e642d000) = 2
| check_if_done()
| list empty
| dighost.c:4087:lookup_detach(0x7f76e642d000) = 1
| clear_current_lookup()
| dighost.c:1759:lookup_detach(0x7f76e642d000) = 0
| destroy_lookup
| freeing server 0x7f76e7596800 belonging to 0x7f76e642d000
| start_lookup()
| check_if_done()
| list empty
| shutting down
| dighost_shutdown()
| 
| done, and starting to shut down
| cancel_all()
| lock_lookup dighost.c:4200
| unlock_lookup dighost.c:4091
| success
| unlock_lookup dighost.c:4231
| destroy_libs()
| freeing task
| lock_lookup dighost.c:4251
| success
| flush_server_list()
| destroy DST lib
| unlock_lookup dighost.c:4279
| Removing log context
| Destroy memory

Thanks,

Martin

Reply via email to