Domain Manage

general DAC question

Discussion in 'Nominet Tag Holders' started by stevie, Nov 18, 2005.

Thread Status:
Not open for further replies.
  1. stevie

    stevie Active Member

    Joined:
    Jun 2005
    Posts:
    443
    Likes Received:
    9
    general DAC question from non TAG holder..
    ok.. before i spend thousands of $$ on memberships & code monkeys etc..

    how do you query the DAC :confused: the instructions for use on Nominets website are a bit vague..

    do you query the same way as whois? nominet mention connection to specific port on dac.nic.uk... what are you presented with on connection?

    could I query it from command line on a unix box?? would I just change my whois server to dac.nic.uk & query as normal??

    any feedback appreciated..

    cheers
     
    Last edited: Nov 18, 2005
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. aquanuke

    aquanuke Well-Known Member

    Joined:
    May 2005
    Posts:
    2,017
    Likes Received:
    34
    You can query the DAC with any application that can open connections ie Perl, PHP, Bash, C++ etc etc..

    Example in PHP you could open a connection with fsockopen..

    http://uk.php.net/manual/en/function.fsockopen.php

    or CURL..

    http://uk.php.net/manual/en/ref.curl.php

    ie

    curl_setopt($ch, CURLOPT_URL, 'http://dac.nic.uk:2043');

    then you send it a query in the form of a domain..

    curl_setopt($ch, CURLOPT_POSTFIELDS, "music.co.uk\r\n");

    and it replies back with something like..

    music.co.uk,Y,N,N,1996-07-30,2006-07-30,1


    "could I query it from command line on a unix box?"

    Yep if you wrote your app in Bash, Perl or PHP.. then just run it from the command line like any other script..

    php ./dac-script.php
     
  4. stevie

    stevie Active Member

    Joined:
    Jun 2005
    Posts:
    443
    Likes Received:
    9
    cheers for the reply aquanuke... sounds fine.. just wanted to be sure I could run test scripts from my lab server at home..

    cheers steve
     
  5. tifosi United Kingdom

    tifosi Well-Known Member

    Joined:
    Oct 2004
    Posts:
    3,128
    Likes Received:
    45
    anybody managed to get curl and the dac working?

    S
     
  6. oaks

    oaks Member

    Joined:
    Nov 2005
    Posts:
    7
    Likes Received:
    0
    Working example

    My scripts a bit P*?s poor. Does anyone have a good example of a script to check a domain availability ?
     
  7. oaks

    oaks Member

    Joined:
    Nov 2005
    Posts:
    7
    Likes Received:
    0
    BTW - Who's best ?

    What's the record on domain name's caught in the last 12 months - who here is best at it ?

    I guess though that quality counts more than quantity - be pretty easy to catch prosiectgolfanodymynyddsirsaerfyrddin.com or would that be a popular domain ?
     
  8. ratboy United Kingdom

    ratboy Well-Known Member

    Joined:
    Sep 2005
    Posts:
    2,399
    Likes Received:
    43
    I'd mis-spell it.

    Anyway, i've got a joke just right for this thread:

    Two tourists were driving through Wales. At Llanhyfryddawelllehynafolybaarcudprindanfygy, they stopped for lunch and asked the waitress: "before we order could you settle an argument for us..., and pronounce where we are very slowly.

    The waitress leans over and says "Buurrrr... Guuurrrr... Kiiinnng. :cool:
     
  9. stevie

    stevie Active Member

    Joined:
    Jun 2005
    Posts:
    443
    Likes Received:
    9
    lol.....i like that.. i'll nick it if you don't mind :D
     
Thread Status:
Not open for further replies.

Share This Page