History log of /openbsd-current/usr.bin/dig/dig.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 06-Sep-2023 jsg

add void to function decls with no args


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.19 20-Dec-2020 florian

Fix IPv6 link-local address handling for nameservers to talk to as
well as address to bind to.
Reported by Jordan Geoghegan (jordan AT geoghegan.ca), thanks!
Debugged by & initial fix by otto
Input & OK otto


Revision tags: OPENBSD_6_8_BASE
# 1.18 15-Sep-2020 florian

We have sockaddr_storage these days, get rid of isc_sockaddr_t.
OK beck, "beautiful" deraadt


# 1.17 15-Sep-2020 florian

The various sockaddr structures have length fields these days.
OK beck


# 1.16 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.15 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


# 1.14 14-Sep-2020 florian

Rewrite isc_time_microdiff() as uelapsed() and put it directly
into dig sources, lets us get rid of unix/time.{c,h}
OK deraadt


# 1.13 13-Sep-2020 florian

Get rid of isc_parse_uint32() and replace it with strtonum.
While here use the standard strtonum error messages.

input & OK beck, OK kn


Revision tags: OPENBSD_6_7_BASE
# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.19 20-Dec-2020 florian

Fix IPv6 link-local address handling for nameservers to talk to as
well as address to bind to.
Reported by Jordan Geoghegan (jordan AT geoghegan.ca), thanks!
Debugged by & initial fix by otto
Input & OK otto


Revision tags: OPENBSD_6_8_BASE
# 1.18 15-Sep-2020 florian

We have sockaddr_storage these days, get rid of isc_sockaddr_t.
OK beck, "beautiful" deraadt


# 1.17 15-Sep-2020 florian

The various sockaddr structures have length fields these days.
OK beck


# 1.16 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.15 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


# 1.14 14-Sep-2020 florian

Rewrite isc_time_microdiff() as uelapsed() and put it directly
into dig sources, lets us get rid of unix/time.{c,h}
OK deraadt


# 1.13 13-Sep-2020 florian

Get rid of isc_parse_uint32() and replace it with strtonum.
While here use the standard strtonum error messages.

input & OK beck, OK kn


Revision tags: OPENBSD_6_7_BASE
# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.18 15-Sep-2020 florian

We have sockaddr_storage these days, get rid of isc_sockaddr_t.
OK beck, "beautiful" deraadt


# 1.17 15-Sep-2020 florian

The various sockaddr structures have length fields these days.
OK beck


# 1.16 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.15 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


# 1.14 14-Sep-2020 florian

Rewrite isc_time_microdiff() as uelapsed() and put it directly
into dig sources, lets us get rid of unix/time.{c,h}
OK deraadt


# 1.13 13-Sep-2020 florian

Get rid of isc_parse_uint32() and replace it with strtonum.
While here use the standard strtonum error messages.

input & OK beck, OK kn


Revision tags: OPENBSD_6_7_BASE
# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.16 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.15 14-Sep-2020 florian

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt


# 1.14 14-Sep-2020 florian

Rewrite isc_time_microdiff() as uelapsed() and put it directly
into dig sources, lets us get rid of unix/time.{c,h}
OK deraadt


# 1.13 13-Sep-2020 florian

Get rid of isc_parse_uint32() and replace it with strtonum.
While here use the standard strtonum error messages.

input & OK beck, OK kn


Revision tags: OPENBSD_6_7_BASE
# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.13 13-Sep-2020 florian

Get rid of isc_parse_uint32() and replace it with strtonum.
While here use the standard strtonum error messages.

input & OK beck, OK kn


Revision tags: OPENBSD_6_7_BASE
# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.12 24-Feb-2020 jsg

remove some uneeded includes


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.11 18-Feb-2020 florian

Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.10 17-Feb-2020 jung

remove unused code

ok florian


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.9 15-Feb-2020 jsg

test pointers against NULL not 0


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.8 13-Feb-2020 florian

+trace has the RD bit cleared however it asks the nameserver from
/etc/resolv.conf for a list of root name servers.
Arguably corectly configured recursive nameservers should REFUSE to
answer this question to prevent cache snooping.
Upstream fixed this after the license change by sending the first
query with RD set.
We go a different route, built in a list of root name servers and ask
them. Otherwise known as a priming query. This way +trace does not depend
on any localy configured nameserver in /etc/resolv.conf

"I have no other quibbles" deraadt@
input & OK sthen


# 1.7 13-Feb-2020 florian

Move DNS_NAME_INITABSOLUTE and DNS_NAME_INITNONABSOLUTE to a comon
header to not have multiple copies.


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.6 13-Feb-2020 jsg

remove unused macros

ok florian@


# 1.5 13-Feb-2020 jsg

remove unused dig_query_start()


# 1.4 12-Feb-2020 schwarze

Standardize argument naming for "sourceaddr" and unify the wording a bit,
similar to what deraadt@ recently did in other manual pages.


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen


# 1.3 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 1.2 11-Feb-2020 florian

Remove ~/.digrc support which feels like a misfeature.
Commands should not suddenly change behaviour in scripts
just because someone placed a .rc file in the home directory.
OK millert, deraadt


# 1.1 07-Feb-2020 florian

Move dig(1) and needed DNS libraries into it's own source directory in
usr.bin/dig.

From the beginning when we started to remove unneeded nameserver code,
it was our goal to extract dig functionality from the bind sources,
for everyone's benefit as this is easier to reason about.

In total we removed about 2/3 or over 300.000 lines of code.

We kept the lib/ subdirectory layout but moved the content of bin/ to
the top from the old bind source directory.

Previous sources and history can be found in the src/usr.sbin/bind
Attic.

With & OK deraadt
Proposed directory layout sounds good to sthen