05-26-2008
Actually Windows' resolver is known to simply drop illegal characters off the end of a host name if it helps to resolve it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am new to Solaris.
I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
2. Programming
Hi all,
I am trying to write a program in C which will generate private and public keys using openssl RSA and use these for encryption and decryption. I am able to generate the keys successfully and write these to files. I am able to read the private key successfully. I can encrypt and decrypt... (1 Reply)
Discussion started by: Treasa
1 Replies
3. Shell Programming and Scripting
hi
I am using ksh
#A="abc-def"
#typeset -u B="$A"
#echo $B
ABC-DEF
how to remove the dash?
i.e.
ABCDEF?
thank you (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
How do you echo something once when a find statement returns null results?
This is when using mutiple locations and mutiple arguments.
The below find command the inner loop of a nested for loop where the outter loop holds the $args and the inner loop holds the locations.
find... (2 Replies)
Discussion started by: tchoruma
2 Replies
5. Shell Programming and Scripting
hi
i try to check if awk returns null
and i dont know how it's works
this is the command
set EndByC = `ls -l $base | awk '/.c$/ {print $9}'`
if ($EndByC=="") then #check if ther is XXX.c directory
echo Sorry ther is no XXX.c folder "in" $base path
echo the XXX.c folder is necessary... (6 Replies)
Discussion started by: frenkelor
6 Replies
6. Shell Programming and Scripting
I have an input file having 7 fields delimited by ,
eg :
1,ABC,hg,1,2,34,3
2,hj,YU,2,3,4,
3,JU,kl,4,5,7,
4,JK,KJ,3,56,4,5
The seventh field here in some lines is empty, whereas the other lines there is a value.
How do I insert string NULL at this location (7th loc) for these lines where... (8 Replies)
Discussion started by: zilch
8 Replies
7. Emergency UNIX and Linux Support
Hi All,
So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says:
It should say:
What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies
8. Red Hat
Hi ,
On my box everything works fine. But whenever I run command
It returns nothing as you see @(none) too.
Its very strange issue I have never noticed on any other system yet.
Any one have any idea about this.
Thank you (2 Replies)
Discussion started by: pratapsingh
2 Replies
9. UNIX for Advanced & Expert Users
deleted (0 Replies)
Discussion started by: hce
0 Replies
10. Shell Programming and Scripting
Well, guys I saw a question about GOTO for Python.
So this gave me the inspiration to attempt a GOTO function for 'dash', (bash and ksh too).
Machine: MBP OSX 10.14.3, default bash terminal, calling '#!/usr/local/bin/dash'...
This is purely a fun project to see if it is possible in PURE... (3 Replies)
Discussion started by: wisecracker
3 Replies
LEARN ABOUT DEBIAN
socket_getaddrinfo
SOCKET_GETADDRINFO(1p) User Contributed Perl Documentation SOCKET_GETADDRINFO(1p)
NAME
"socket_getaddrinfo" - command-line tool to "getaddrinfo(3)" resolver
SYNOPSIS
socket_getaddrinfo [options...] host service
DESCRIPTION
This tool provides a convenient command-line wrapper around the getaddrinfo(3) resolver function. It will perform a single lookup and print
the returned results in a human-readable form. This is mainly useful when debugging address resolution problems, because it allows
inspection of the getaddrinfo(3) behaviour itself, outside of any real program that is trying to use it.
OPTIONS
--host, -H HOST
Hostname to resolve. If not supplied, will use the first positional argument
--service, -S SERVICE
Service name or port number to resolve. If not supplied, will use the second positional argument.
-4 Restrict to just "AF_INET" (IPv4) results
-6 Restrict to just "AF_INET6" (IPv6) results
--stream
Restrict to just "SOCK_STREAM" results
--dgram Restrict to just "SOCK_DGRAM" results
--proto PROTO
Restrict to just results of the given IP protocol
--passive
Set the "AI_PASSIVE" hint; results will used to bind() and listen() rather than connect()
--canonical
Retrive the canonical name for the requested host
--help Display a help summary and exit
OUTPUT FORMAT
Each line of output will be given in a form that indicates the four result fields of "ai_family", "ai_socktype", "ai_protocol" and
"ai_addr". The first three are printed in the form of a socket(2) call, either symbolically or numerically, and the latter is printed as a
plain string following it. For example
socket(AF_INET , SOCK_STREAM, IPPROTO_TCP) + '127.0.0.1:80'
NOTE
Upstream this script is known as "getaddrinfo", but was renamed on Debian.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-06-08 SOCKET_GETADDRINFO(1p)