metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 159 forks source link

How to get the nameserver last update date? #222

Closed swartjie closed 4 years ago

swartjie commented 4 years ago

Hey Guys,

How can one go about getting the last update date for nameservers? I Can only find references to getting the IP and the nameserver itself... How can we get the actual update date?

Thanks for the assistance!

metaregistrar commented 4 years ago

You can only get the last update date for the domain name - and then you still don't know what has been updated. There is no last-update date for nameservers.

swartjie commented 4 years ago

How is that then implicated with RDAP apparently requiring the NS record update date aswell? Or did I miss something?

I saw on some of the service providers rdap links that the ns update date's are included?

metaregistrar commented 4 years ago

It seems that the RDAP RFC's mix nameservers with hostnames.

In EPP, a hostname (a sub-ordinate nameserver to a domain name) can have IP addresses and last update data. A nameserver (when you connect a nameserver to a domain name) cannot. You cannot specify the IP address and you cannot see the last update date.

But if you have subordinate nameserver to a domainname (for example if you own hostingserver.com and you also own ns1.hostingserver.com and ns2.hostingserver.com), those are called Hosts (not nameservers) in EPP, and you define and query them with an eppHost object.

swartjie commented 4 years ago

Sorry I conflated the two... I am looking for the sub-ordinate nameserver last update date?

metaregistrar commented 4 years ago

I think that is it, yes

swartjie commented 4 years ago

Ok now the question is can I do it with your class though?

metaregistrar commented 4 years ago

If it is a subordinate host, yes. Use the eppInfoHostRequest, and with the result retrieve getHostUpdateDate()