Day: 5 January 2025

PHP

How to request an A record from a DNS server in PHP 8.3

In PHP 8.3, you can use the dns_get_record() function to query DNS records, including A records. Here’s an example of how to request an A record from a DNS server: Explanation: Example Output: If the domain has A records, the output will look like this:

Loading

Read More
PHP

How do I reverse an IP address for use in DNS BL?

Here’s a small function in PHP 8.3 that reverses an IPv4 address: Explanation: This ensures the function works safely and as expected.

Loading

Read More