![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Domain Tools Discuss and evaluate domainer tools and resources |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | whois2 php script
Im hoping someone can help Ive written a script that should work but doesnt. Taking a whois lookup on port 43 and changed to 1043 and included host & IP. Using port 43 works fine so cant see what ive missed. Code: <?php
$fp = fsockopen('whois.nic.uk', 1043, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br />\n";
} else {
fwrite($fp, "myhome.hostname myhome.ip.address yahoo.co.uk\r\n");
while (!feof($fp)) {
echo str_replace("\n", '<br />', fread($fp, 100));
}
fclose($fp);
}
?> Code: Warning: fsockopen() [function.fsockopen]: unable to connect to whois.nic.uk:1043 in /home/daily/public_html/who.php on line 3 ERROR: 110 - Connection timed out
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters Last edited by purg; 04-04-2008 at 09:59:44 PM. |
| |
| | #2 (permalink) |
![]() |
Is the IP you're trying to connect to whois2 from allowed? "The service will be available on a subscription only basis. At the point of subscription you will need to provide Nominet with the IP address of your gateway." S |
| |
| | #3 (permalink) |
![]() |
Looks ok, I just use something like this with np PHP Code: |
| |
| | #4 (permalink) |
![]() | Maybe make sure your connecting from the domains IP not the servers main IP. Most likely connections would come from the servers IP unless you use bind to bind a specific IP to your script. You should be able to see what outgoing connections are running using netstat.
|
| |
| | #5 (permalink) |
![]() |
tifosi... yes ive been accepted and the IP being shown from the domain/script is the IP whois2 has granted access. I put this towards the bottom of my first post. aquanuke... Thanks i'll give that a try. From shell im getting the correct address also phpinfo shows the correct IP SERVER_ADDR 65.99.233.85 SERVER_NAME dailydomain.co.uk The message from both our scripts seems to suggest im not even getting to nic.uk? let alone not being granted access or not. Warning: fsockopen() [function.fsockopen]: unable to connect to whois.nic.uk:1043 in /home/daily/public_html/who2.php on line 7
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters Last edited by purg; 05-04-2008 at 12:01:23 PM. |
| |
| | #7 (permalink) |
![]() |
Probs easier just to bind the IP through the script, try this through a web browser. PHP Code: |
| |
| | #8 (permalink) |
![]() |
Thanks guys but still nothing.... this is getting annoying so will try phoning Nominet Monday for ideas. Im starting to think they sent the email telling me I have access without really granting access to the IP. Ive posted a site im working on (dailydomain.co.uk), but until this is working the public wont be able to update or lookup whois info which is a shame.
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| PHP script and adsense ID's | golddiggerguy | Scripts and Coding | 3 | 02-03-2008 10:35:27 PM |
| PHP script wanted for memories website | golddiggerguy | Website Design | 9 | 29-12-2007 04:45:19 PM |
| PHP script | pendragon | Services Wanted | 5 | 11-11-2007 12:42:45 PM |