host.c does have "U": https://github.com/isc-
projects/bind9/blob/master/bin/dig/host.c#L793

it's even in the optstring array: https://github.com/isc-
projects/bind9/blob/master/bin/dig/host.c#L588

But the pre_parse() function in https://github.com/isc-
projects/bind9/blob/master/bin/dig/host.c#L597 isn't handling it

I think this ought to fix it:
--- a/bin/dig/host.c
+++ b/bin/dig/host.c
@@ -657,6 +657,7 @@ pre_parse_args(int argc, char **argv) {
                case 'N': break;
                case 'R': break;
                case 'T': break;
+               case 'U': break;
                case 'W': break;
                default:
                        show_usage();


I'll give it a try and submit upstream if it works.

** Changed in: bind9 (Ubuntu)
     Assignee: (unassigned) => Andreas Hasenack (ahasenack)

** Changed in: bind9 (Ubuntu)
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1804648

Title:
  host utility doesn't support switch -U (force UDP)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1804648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to