History log of /openbsd-current/usr.bin/dig/nslookup.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 15-Sep-2020 florian

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


# 1.12 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.11 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.10 28-Apr-2020 deraadt

Rather than attempting to lookup the keyword "set" as a hostname,
issue a usage message. This matches both historical behaviour, and
the operation upon other keywords.
ok florian


# 1.9 25-Feb-2020 deraadt

traditional nslookup would not fatal if the server name was undiscoverable.
change lower level code to return an error, and bump the fatal for host(1)
upwards, then tweak nslookup to work nicely


# 1.8 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 14-Sep-2020 florian

Mechanically replace isc_boolean_t with int.
OK deraadt


# 1.11 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.10 28-Apr-2020 deraadt

Rather than attempting to lookup the keyword "set" as a hostname,
issue a usage message. This matches both historical behaviour, and
the operation upon other keywords.
ok florian


# 1.9 25-Feb-2020 deraadt

traditional nslookup would not fatal if the server name was undiscoverable.
change lower level code to return an error, and bump the fatal for host(1)
upwards, then tweak nslookup to work nicely


# 1.8 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 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.10 28-Apr-2020 deraadt

Rather than attempting to lookup the keyword "set" as a hostname,
issue a usage message. This matches both historical behaviour, and
the operation upon other keywords.
ok florian


# 1.9 25-Feb-2020 deraadt

traditional nslookup would not fatal if the server name was undiscoverable.
change lower level code to return an error, and bump the fatal for host(1)
upwards, then tweak nslookup to work nicely


# 1.8 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 28-Apr-2020 deraadt

Rather than attempting to lookup the keyword "set" as a hostname,
issue a usage message. This matches both historical behaviour, and
the operation upon other keywords.
ok florian


# 1.9 25-Feb-2020 deraadt

traditional nslookup would not fatal if the server name was undiscoverable.
change lower level code to return an error, and bump the fatal for host(1)
upwards, then tweak nslookup to work nicely


# 1.8 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 25-Feb-2020 deraadt

traditional nslookup would not fatal if the server name was undiscoverable.
change lower level code to return an error, and bump the fatal for host(1)
upwards, then tweak nslookup to work nicely


# 1.8 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 24-Feb-2020 florian

Stop generating rdatastruct.h and put the dns_rdata_* structs for
cname, ns, soa, and tsig directly into rdata.h


# 1.7 24-Feb-2020 florian

We only need to create cname, ns, soa and tsig structs.
OK jsg


# 1.6 24-Feb-2020 florian

We only need to free cname, ns, soa and tsig structs.
OK jsg


# 1.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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.5 19-Feb-2020 jung

simplify signal setup and remove block/unblock/is_running/reload

with input from florian

ok millert florian


# 1.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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.4 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.3 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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.2 11-Feb-2020 jsg

remove uneeded #include lines

ok florian@


# 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