Retrieving info from a whois query

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    Retrieving info from a whois query

    Hi !
    Can some one give me a little step by step to put me onthe right way..
    I'd like to use PHP with Postresql.
    I need to make many whois query on the domain names that we own, to store
    the information such as expiration date and so in our DB.
    I was thinking of :
    using php to open the url of the query, retrieve the new web page with ftp
    mode,
    parsing the page with some "expression régulieres" and then uploading the
    found data in my DB...

    Can you tell me what you think of that, is there any way to be quicker and
    easier, and maybe some advice on how to retrieve and parse the file..
    because I dont really know how to..

    Thank you..

    Fred.


  • Michael Austin

    #2
    Re: Retrieving info from a whois query

    Fred wrote:[color=blue]
    > Hi !
    > Can some one give me a little step by step to put me onthe right way..
    > I'd like to use PHP with Postresql.
    > I need to make many whois query on the domain names that we own, to store
    > the information such as expiration date and so in our DB.
    > I was thinking of :
    > using php to open the url of the query, retrieve the new web page with ftp
    > mode,
    > parsing the page with some "expression régulieres" and then uploading the
    > found data in my DB...
    >
    > Can you tell me what you think of that, is there any way to be quicker and
    > easier, and maybe some advice on how to retrieve and parse the file..
    > because I dont really know how to..
    >
    > Thank you..
    >
    > Fred.
    >
    >[/color]

    Internic no longer allows scripted access to the whois information, they
    require you to enter a "security code" that is in a JPG and is not textual.

    There are whois applicatons that search most of the registrars for the
    information, but you will need to find one that works and script it from
    there... It was soooo easy when there was only one registrar... One of
    the other issues is the fact that not all registrars present the data in
    the same format.

    Michael Austin.

    Comment

    • John Downey

      #3
      Re: Retrieving info from a whois query

      You will probably need to manually query the whois server using the
      RWhois protocol (http://www.faqs.org/rfcs/rfc1714.html) and fsockopen.

      Comment

      • Fred

        #4
        Re: Retrieving info from a whois query

        Thanl you.
        I'll read this.
        It's also advised on how to collect the data from the whois query and to
        store it in the DB ?
        We de have a lot of registrars, this is what we will go on with the whois
        query.
        But actually I'll have to log manually on each registrar to know all the
        domaines we own and as they are displayed like 20 domaines/page, it will
        take time to read them all :-(


        "John Downey" <jdowney@gmail. com> a écrit dans le message de
        news:163e97b1.0 407082135.35368 ce5@posting.goo gle.com...[color=blue]
        > You will probably need to manually query the whois server using the
        > RWhois protocol (http://www.faqs.org/rfcs/rfc1714.html) and fsockopen.[/color]


        Comment

        • Michael Austin

          #5
          Re: Retrieving info from a whois query

          Fred wrote:[color=blue]
          > Thanl you.
          > I'll read this.
          > It's also advised on how to collect the data from the whois query and to
          > store it in the DB ?
          > We de have a lot of registrars, this is what we will go on with the whois
          > query.
          > But actually I'll have to log manually on each registrar to know all the
          > domaines we own and as they are displayed like 20 domaines/page, it will
          > take time to read them all :-(
          >
          >
          > "John Downey" <jdowney@gmail. com> a écrit dans le message de
          > news:163e97b1.0 407082135.35368 ce5@posting.goo gle.com...
          >[color=green]
          >>You will probably need to manually query the whois server using the
          >>RWhois protocol (http://www.faqs.org/rfcs/rfc1714.html) and fsockopen.[/color]
          >
          >
          >[/color]

          Or!!!! you could contract someone that already has this code available
          (but not on Linux or Windows) that can do this for you and send you a
          CSV file you can load into your database. Some guy by the name of
          Michael Austin comes to mind... :) :)

          Michael Austin

          Comment

          • Fred

            #6
            Re: Retrieving info from a whois query

            Not on linux nor windows ?
            so where ??!
            and.. your code juste store the data in your CSV file ?
            I wish I could ask this cool guy to help me a little bit ;-)

            "Michael Austin" <maustin@firstd basource.com> a écrit dans le message de
            news:E8yHc.7354 $d92.2827@newss vr23.news.prodi gy.com...[color=blue]
            > Fred wrote:[color=green]
            > > Thanl you.
            > > I'll read this.
            > > It's also advised on how to collect the data from the whois query and to
            > > store it in the DB ?
            > > We de have a lot of registrars, this is what we will go on with the[/color][/color]
            whois[color=blue][color=green]
            > > query.
            > > But actually I'll have to log manually on each registrar to know all the
            > > domaines we own and as they are displayed like 20 domaines/page, it will
            > > take time to read them all :-(
            > >
            > >
            > > "John Downey" <jdowney@gmail. com> a écrit dans le message de
            > > news:163e97b1.0 407082135.35368 ce5@posting.goo gle.com...
            > >[color=darkred]
            > >>You will probably need to manually query the whois server using the
            > >>RWhois protocol (http://www.faqs.org/rfcs/rfc1714.html) and fsockopen.[/color]
            > >
            > >
            > >[/color]
            >
            > Or!!!! you could contract someone that already has this code available
            > (but not on Linux or Windows) that can do this for you and send you a
            > CSV file you can load into your database. Some guy by the name of
            > Michael Austin comes to mind... :) :)
            >
            > Michael Austin
            > http://www.firstdbasource.com[/color]


            Comment

            • Michael Austin

              #7
              Re: Retrieving info from a whois query

              Fred wrote:[color=blue]
              > Not on linux nor windows ?
              > so where ??!
              > and.. your code juste store the data in your CSV file ?
              > I wish I could ask this cool guy to help me a little bit ;-)
              >
              > "Michael Austin" <maustin@firstd basource.com> a écrit dans le message de
              > news:E8yHc.7354 $d92.2827@newss vr23.news.prodi gy.com...
              >[color=green]
              >>Fred wrote:
              >>[color=darkred]
              >>>Thanl you.
              >>>I'll read this.
              >>>It's also advised on how to collect the data from the whois query and to
              >>>store it in the DB ?
              >>>We de have a lot of registrars, this is what we will go on with the[/color][/color]
              >
              > whois
              >[color=green][color=darkred]
              >>>query.
              >>>But actually I'll have to log manually on each registrar to know all the
              >>>domaines we own and as they are displayed like 20 domaines/page, it will
              >>>take time to read them all :-(
              >>>
              >>>
              >>>"John Downey" <jdowney@gmail. com> a écrit dans le message de
              >>>news:163e97b 1.0407082135.35 368ce5@posting. google.com...
              >>>
              >>>
              >>>>You will probably need to manually query the whois server using the
              >>>>RWhois protocol (http://www.faqs.org/rfcs/rfc1714.html) and fsockopen.
              >>>
              >>>
              >>>[/color]
              >>Or!!!! you could contract someone that already has this code available
              >>(but not on Linux or Windows) that can do this for you and send you a
              >>CSV file you can load into your database. Some guy by the name of
              >>Michael Austin comes to mind... :) :)
              >>
              >>Michael Austin
              >>http://www.firstdbasource.com[/color]
              >
              >
              >[/color]

              I recently received a whois kit that runs only on OpenVMS that talks to
              nearly every registrar - at least a large number of them... I have a
              whois page that gets the data for a single domain name. A slight
              modification of this page would be able to iteratively read a file or db
              containing the list of domains, do the inquiry and parse the information
              you are looking for and output it in whatever format suits your fancy.
              Unfortunately, this particular whois program does not have sources
              available for porting to *x or Wxx.

              And currently being unemployed, I have lots of time on my hands, but I
              also have this quirk whereby, for some unexplainable reason, I need to
              be able to eat as well... ;) (I also presume that the author of the
              whois app also likes to be able to eat. )

              Michael Austin.
              http://www.firstdbasource.com/donation.html (works in IE - having
              problems with FireFox)

              Comment

              Working...