Remote connections intermittent

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
This seems to be extremely intermittent, but this is what's happening:
wget http://www.yahoo.com
--01:43:21-- http://www.yahoo.com/
=> `index.html'
Resolving www.yahoo.com... failed: Host not found.
Or:
wget http://www.directadmin.com
--01:44:20-- http://www.directadmin.com/
=> `index.html'
Resolving www.directadmin.com... failed: Host not found.
This happens eveywhere. PHP for instance:
PHP:
<?php
 
include "http://www.yahoo.com";
 
?>
Output:
Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/admin/domains/liquenox.net/public_html/test.php on line 3

Warning: main(http://www.yahoo.com): failed to open stream: Resource temporarily unavailable in /home/admin/domains/liquenox.net/public_html/test.php on line 3

Warning: main(): Failed opening 'http://www.yahoo.com' for inclusion (include_path='.:/usr/local/lib/php') in /home/admin/domains/liquenox.net/public_html/test.php on line 3
Something to do with named I suppose.. but what? I haven't touched named.
 
Do a dig for yahoo.com or directadmin.com and post that. It should give you something like these ip's:

Code:
; <<>> DiG 9.2.2 <<>> directadmin.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5029
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;directadmin.com.               IN      A

;; ANSWER SECTION:
directadmin.com.        13968   IN      A       66.51.122.131

;; AUTHORITY SECTION:
directadmin.com.        13968   IN      NS      ns2.jbmc-software.com.
directadmin.com.        13968   IN      NS      ns1.jbmc-software.com.

;; ADDITIONAL SECTION:
ns2.jbmc-software.com.  134470  IN      A       66.51.122.130
ns1.jbmc-software.com.  134470  IN      A       66.51.122.129

;; Query time: 47 msec
;; SERVER: 208.44.86.222#53(208.44.86.222)
;; WHEN: Mon Feb 16 23:37:16 2004
;; MSG SIZE  rcvd: 131

This way you know if your local name server is working...
 
Check your /etc/resolv.conf ... if you are running your own copy of named (yes) you only need 127.0.0.1 as a nameserver so that lookups are all queried locally,which should give you increased performance and reliability.

John
 
Back
Top