Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native PHP solution for dig/exec #1

Open
d47081 opened this issue Dec 17, 2023 · 3 comments
Open

Add native PHP solution for dig/exec #1

d47081 opened this issue Dec 17, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@d47081
Copy link
Contributor

d47081 commented Dec 17, 2023

ygguser/simple_sites_directory#7

@d47081 d47081 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 17, 2023
@d47081 d47081 changed the title Add native PHP solution for dig Add native PHP solution for dig/exec Dec 17, 2023
@ygguser
Copy link

ygguser commented Dec 22, 2023

There are comments under this article that contain links to ready-made php solutions. It might be easier to take some of this:

@d47081
Copy link
Contributor Author

d47081 commented Dec 23, 2023

I saw those libraries but using net-php library includes strict output validation for exec and tested on Yggdrasil/IPv6.

There is no support for all records yet, but in development - currently it's A, AAAA, SRV

Just I wish to see native PHP implementation, because exec requires system dependencies plus it's pretty unsafe.

@ygguser
Copy link

ygguser commented Dec 23, 2023

Here is native implementation: https://gist.github.com/bohwaz/ddc61c4f7e031c3221a89981e70b830c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants