473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Translate into php

I'm doing whois domain checker for www.hosthome.co.uk and want to add a
checking routine for the .eu tld .

I have limited knowledge about sockets and stuff - so can somebody
translate the info below into php so i can actually use it .


http://registrar.eurid.eu/en/registr...nt/das-domain-
availability-service

or

www.vhit.co.uk/?url=1000527 if the above wraps .
DAS Domain Availability Service
Tool for easy .eu look ups

For registrars and others there is an alternative to WHOIS to see if a
..eu domain name is available, registered or already applied for. The
service is called DAS (Domain Availability Service) and does not have
limitations as to how many queries can be done in a given time. However,
you will only get the status of the domain name as a reply to your
query, not the full address etc of an applicant or holder.

DAS has its own very simple protocol. It uses port 4343 at =3Fdas.eu=3F The
string needed is:

get 1.0 domainname

Where =3Fdomainname=3F is the name you want to look up, without the =3F.eu=3F.

The example below shows the result returned on a lookup of the domain
name =3Feurid=3F.

% .eu Domain Availability Server 1.0

%

% (c) 2005 (http://www.eurid.eu)

%

%% RC = 0

Domain: eurid

Status: REGISTERED

As you can see, the status of the domain name is that it is
=3Fregistered=3F.
Possible statuses are:

Registered: Meaning just that. The domain name is registered.

Blocked: The domain name has been blocked.

Reserved: The domain name is on the list of reserved domain names.

Free: The domain name is available.

Suspended (quarantine): The domain name is in quarantine after being
canceled.

Application pending: The domain name is applied for during Sunrise
waiting to be validated, activated or released again.

On hold: An ADR is pending on an active domain name

Not Allowed: The input string is invalid, e.g. asking for xn--abc or
sdf&sdf etc.

Out of Service: This is shown when a registrar quits (stops contract)
and domain names in his portfolio are not transferred to another
registrar.

Revoked: Shown if EURid decides to revoke a domain name due to a
material breach of the contract was found.
Aug 5 '06 #1
2 2196
Krustov wrote:
I'm doing whois domain checker for www.hosthome.co.uk and want to add
a checking routine for the .eu tld .
Something like the following should do it:

$domain = 'eu';

$fp = fsockopen('das.eu', 4343);
fputs($fp, "get 1.0 $domain");
fpassthru($fp);
JW
Aug 6 '06 #2
<comp.lang.php>
<Janwillem Borleffs>
<Sun, 6 Aug 2006 02:36:32 +0200>
<44***********************@news.euronet.nl>
Something like the following should do it:

$domain = 'eu';

$fp = fsockopen('das.eu', 4343);
fputs($fp, "get 1.0 $domain");
fpassthru($fp);
Thanks for that - but couldnt get it to work properly .

I'll leave out the .eu domain rather than waste time on it .
--
Encrypted email address
www.emailuser.co.uk/?name=KRUSTOV
Make a shorter url
www.vhit.co.uk
Aug 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bengt Richter | last post by:
Just thought None as the first argument would be both handy and mnemonic, signifying no translation, but allowing easy expression of deleting characters, e.g., s = s.translate(None,...
1
by: shank | last post by:
I'm sure this is a stretch, but is there some kind of component that I could install to translate from English to Spanish on the fly? I have a lot of equipment features and specifications that I...
4
by: Gadrin77 | last post by:
I have data that looks like <Root> <Main Value="Line1|Line2.|Line3|Line4.|Line5"/> </Root> I'm using Translate(@Value, "|.", ",")
6
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
6
by: Anders K. Olsen | last post by:
Hello group I'm trying to list the users and groups who has read access to a file. I use .NET 2.0 and FileInfo.GetAccessControl().GetAccessRules(...) and then loop through the...
1
by: peterbe | last post by:
This has always worked fine for me. Peter fine Now if I do it with a unicode string: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/string.py", line...
9
bvdet
by: bvdet | last post by:
I have done some more work on a simple class I wrote to calculate a global coordinate in 3D given a local coordinate: ## Basis3D.py Version 1.02 (module macrolib.Basis3D) ## Copyright (c) 2006...
1
by: =?Utf-8?B?R2F1cmF2?= | last post by:
Hi, I am using the Translate() function in one of the .XSLT file to remove the spaces, like this: <xsl:for-each select=".//Illustration"> <xsl:value-of select="translate(./@illusName, ' ',...
3
by: Kenneth McDonald | last post by:
I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? Thanks, Ken
4
by: kovariadam | last post by:
Hi, Does anybody know why i get this error: SQL0176N The second, third or fourth argument of the TRANSLATE scalar function is incorrect. SQLSTATE=42815 with this query: SELECT...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.