Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 08:33 pm EST
Geeklog Forums
GUS: Anyone a clue if this could be GL related ?
Status: offline
knuff
Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hehe,
No clue at all if it is GL related or not, but my httpd error log has a A LOT of the following entries ...
host: invalid option -- W
host: usage error (unrecogized switch)
Usage: host [-adlrwv] [-t querytype] [-c class] host [server]
-a is equivalent to '-v -t *'
-c class to look for non-Internet data
-d to turn on debugging output
-l to turn on 'list mode'
-r to disable recursive processing
-s recursively chase signature found in answers
-t querytype to look for a specific type of information
-v for verbose output
-w to wait forever until reply
host: invalid option -- W
host: usage error (unrecogized switch)
Usage: host [-adlrwv] [-t querytype] [-c class] host [server]
-a is equivalent to '-v -t *'
-c class to look for non-Internet data
-d to turn on debugging output
-l to turn on 'list mode'
-r to disable recursive processing
-s recursively chase signature found in answers
-t querytype to look for a specific type of information
-v for verbose output
-w to wait forever until reply
Anyone a clue ?
Thanks,
Boris
** Updated title to reflect GUS **
Vanrillaer.com - our Family Portal
No clue at all if it is GL related or not, but my httpd error log has a A LOT of the following entries ...
Text Formatted Code
host: invalid option -- W
host: usage error (unrecogized switch)
Usage: host [-adlrwv] [-t querytype] [-c class] host [server]
-a is equivalent to '-v -t *'
-c class to look for non-Internet data
-d to turn on debugging output
-l to turn on 'list mode'
-r to disable recursive processing
-s recursively chase signature found in answers
-t querytype to look for a specific type of information
-v for verbose output
-w to wait forever until reply
host: invalid option -- W
host: usage error (unrecogized switch)
Usage: host [-adlrwv] [-t querytype] [-c class] host [server]
-a is equivalent to '-v -t *'
-c class to look for non-Internet data
-d to turn on debugging output
-l to turn on 'list mode'
-r to disable recursive processing
-s recursively chase signature found in answers
-t querytype to look for a specific type of information
-v for verbose output
-w to wait forever until reply
Anyone a clue ?
Thanks,
Boris
** Updated title to reflect GUS **
Vanrillaer.com - our Family Portal
7
5
Quote
Status: offline
knuff
Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Aha !
I installed the GUS plugin today ;-)
And using the search within GUS I found the following code snippet
// adapted from code found here: http://www.php.net/gethostbyaddr
function ip_to_hostname( $ip )
{
global $_GUS_CONF;
switch( $_GUS_CONF['host_lookup'] )
{
case 'host':
$timeout = $_GUS_CONF['host_lookup_timeout'];
$output = `host -W $timeout $ip`;
if ( ereg( '.*pointer ([A-Za-z0-9.-]+)\..*', $output, $regs ) )
return $regs[1];
break;
So I guess it comes from GUS
Thanks Dirk !
Now let´s switch over to the developer of GUS
Vanrillaer.com - our Family Portal
I installed the GUS plugin today ;-)
And using the search within GUS I found the following code snippet
Text Formatted Code
// adapted from code found here: http://www.php.net/gethostbyaddr
function ip_to_hostname( $ip )
{
global $_GUS_CONF;
switch( $_GUS_CONF['host_lookup'] )
{
case 'host':
$timeout = $_GUS_CONF['host_lookup_timeout'];
$output = `host -W $timeout $ip`;
if ( ereg( '.*pointer ([A-Za-z0-9.-]+)\..*', $output, $regs ) )
return $regs[1];
break;
So I guess it comes from GUS
Thanks Dirk !
Now let´s switch over to the developer of GUS
Vanrillaer.com - our Family Portal
6
7
Quote
Status: offline
asmaloney
Forum User
Full Member
Registered: 02/08/04
Posts: 214
...which would be me.
You can switch the hostname lookup method in your GUS config.php. 'gethostbyaddr' is always a safe option because it is the built-in PHP function - but you can't make it timeout, so it might be slower.
Out of curiosity what platform are you on? [haven't seen one which doesn't support host -W yet...]
- Andy
You can switch the hostname lookup method in your GUS config.php. 'gethostbyaddr' is always a safe option because it is the built-in PHP function - but you can't make it timeout, so it might be slower.
Out of curiosity what platform are you on? [haven't seen one which doesn't support host -W yet...]
- Andy
5
6
Quote
Status: offline
knuff
Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Here comes the MAN from the RAQ4.
I did a quick google but couldn´t find a reference for RAQ on this one, and I do understand why you would want to use the -W option.
I am not sure if I could just upgrade the host functionality without braking anything.
# man host
SEE ALSO
named(8), resolver(5).
BUGS
Unexpected effects can happen when you type a name that is not part of
the local domain. Please always keep in mind the fact that the local do
main name is tacked onto the end of every name, unless it ends in a dot.
Only if this fails is the name used unchanged.
The ``-l'' option only tries the first name server listed for the domain
that you have requested. If this server is dead, you may need to specify
a server manually. E.g., to get a listing of foo.edu, you could try
host -t ns foo.edu
to get a list of all the name servers for foo.edu, and then try
host -l foo.edu xxx
for all ``xxx'' on the list of name servers, until you find one that
works.
4th Berkeley Distribution December 15, 1994
Best Regards,
Boris
Vanrillaer.com - our Family Portal
I did a quick google but couldn´t find a reference for RAQ on this one, and I do understand why you would want to use the -W option.
I am not sure if I could just upgrade the host functionality without braking anything.
Text Formatted Code
# man host
SEE ALSO
named(8), resolver(5).
BUGS
Unexpected effects can happen when you type a name that is not part of
the local domain. Please always keep in mind the fact that the local do
main name is tacked onto the end of every name, unless it ends in a dot.
Only if this fails is the name used unchanged.
The ``-l'' option only tries the first name server listed for the domain
that you have requested. If this server is dead, you may need to specify
a server manually. E.g., to get a listing of foo.edu, you could try
host -t ns foo.edu
to get a list of all the name servers for foo.edu, and then try
host -l foo.edu xxx
for all ``xxx'' on the list of name servers, until you find one that
works.
4th Berkeley Distribution December 15, 1994
Best Regards,
Boris
Vanrillaer.com - our Family Portal
5
7
Quote
All times are EST. The time is now 08:33 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content