markrogoyski / ipv4-subnet-calculator-php

Network calculator for subnet mask and other classless (CIDR) network information.
MIT License
168 stars 42 forks source link

Feature Request #18

Closed alexgn100 closed 2 years ago

alexgn100 commented 2 years ago

Hello,

would it be possible to integrate arpa from an IP as a function?

markrogoyski commented 2 years ago

Hi @MG-100,

Are you asking is it possible to do a reverse IP address mapping to get the domain name associated with an IP address?

For example: "74.6.231.21" => "yahoo.com"

If so, that functionality is already built into PHP. See the built-in function gethostbyaddr.

alexgn100 commented 2 years ago

Hi @MG-100,

Are you asking is it possible to do a reverse IP address mapping to get the domain name associated with an IP address?

For example: "74.6.231.21" => "yahoo.com"

If so, that functionality is already built into PHP. See the built-in function gethostbyaddr.

Hello,

I mean for example a arpa for dns: 74.6.231.21 => 21.231.6.74.in-addr.arpa

markrogoyski commented 2 years ago

Hi @MG-100,

Thank you for the clarification. I understand that you are asking for the IP address format used to query the DNS PTR record in a reverse DNS lookup. I can add this. Do you have any suggestions on a concise, self-describing name for the function?

Thanks, Mark

alexgn100 commented 2 years ago

Hello,

thanks for adding this feature :)

Example Function Name: $sub->getReverseDnsZone();

alexgn100 commented 2 years ago

Hello,

Have you any eta?

markrogoyski commented 2 years ago

Hi @MG-100,

I am working on a new version that will include the ARPA domain. I will try to release it in the next few days. Thank you for your patience.

Nevercold commented 2 years ago

Is there any news about the update yet?

Nevercold commented 2 years ago

And is there anything for Ipv6?

markrogoyski commented 2 years ago

Version v4.0.0 has been released that has this feature (getIPv4ArpaDomain) as well as other new features and improvements.

Thank you for your interest in improving the IPv4 SubnetCalculator and your patience while I implemented this new feature in the new version.

markrogoyski commented 2 years ago

@Nevercold, If you have any suggestions or specific feature requests please create a new issue. Thanks.