yswery / PHP-DNS-SERVER

An Authoritative DNS Server written purely in PHP
MIT License
287 stars 72 forks source link

Don't fail on unsupported dns records #74

Closed nkakouros closed 6 years ago

nkakouros commented 6 years ago

I took a quick a look in the code after #73. Comparing dns_answer_names and dns query type, it seems to me that if a query of a type missing from dns_answer_names (like the SRV record that caused #73) is received, php-dns will crash on the same point as in #73.

I think that php-dns should not fail in any case. If my understanding above is correct, how could php-dns handle that situation more gracefully?

samuelwilliams commented 6 years ago

Check out branch version-1 - this has a much more graceful way of dealing with unsupported record types.

nkakouros commented 6 years ago

This seems like a total reworking of the project structure. Does this mean that #73 is useless? Should I close it?

samuelwilliams commented 6 years ago

Dont close it, it's still an improvement. But I haven't worked in SRV RData into version-1 yet.

On Fri., 26 Oct. 2018, 07:30 tterranigma, notifications@github.com wrote:

This seems like a total reworking of the project structure. Does this mean that #73 https://github.com/yswery/PHP-DNS-SERVER/pull/73 is useless? Should I close it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yswery/PHP-DNS-SERVER/issues/74#issuecomment-433212695, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxOHnCo3Nieb6dA5DCBqzAw5rgIZC6Oks5uoi18gaJpZM4X6HWI .