ASP(1)
π ASP(1) β find an host IP address by its name π
okay bestie, welcome to the User Manual for asp β she's a little Unix girlie from February 1997 and she still slays, no cap π
β¨ NAME β¨
asp β find an host IP address by its name
π¦ SYNOPSIS π¦
asp [-uv] [-f | [-d dir] [-e ext]] [-a addresses] [-r repetitions] [-s
send_delay] [-w wait_time] [-p port] hostname
asp -V
πΈ DESCRIPTION πΈ
okay so, asp finds the IP address of an Internet connected host. like, that's the whole vibe. but here's the tea π΅ β to actually find it, you gotta tell her two things: the peer hostname (not the FQDN, bestie, the plain one), and the range of its possible IP addresses.
and those IP addresses? they can be simple-simple, like 127.0.0.1, or they can be what we call "metaip" addresses, like 127.0.0.1-20 or 127.0.0.*. the first kind is just a cute shortcut so you don't have to type a million consecutive addresses by hand, and the * kind is literally short for 127.0.0.1-254. iconic behavior tbh π
now, to make managing all these hostname β address associations less of a nightmare, asp goes looking in a specified directory for a text file that holds the possible IP addresses of the host you're hunting for. the file's name has to be the hostname followed by an optional extension of your choice. slay, customizable π
so like, for example, to find the author's dynamic IP address β obviously if I am on line β you can hand over my metaip address on standard input with this command:
echo "195.31.186.1-62
194.166.58.2-18" | asp -f atomic
orrr you can put my metaip address in a file called atomic in your ~/.asp directory, like this:
echo "195.31.186.1-62
194.166.58.2-18" > ~/.asp/atomic
and then you can simply do:
asp atomic
literally that easy, periodt β¨
π OPTIONS π
-uβ Update the file/etc/hostswith the IP address of hostname, or delete the possible old entry if the address is not found. Obviously the file have to by writable by the user. π-vβ Include more verbiage to make output readable by humans. Default consists only of dotted quad IP address, which is intended for output substitution in scripts.-fβ Force the reading of addresses from standard input instead that from the hostname's file.-ddir β Set the directory containing the addresses file referred by hostname to dir. Default is~/.asp.-eext β Set addresses files extension to ext. Default is no extension.-aaddresses β Set the number of queries to send before make a pause of send_delay seconds. Default is 12 queries.-rrepetitions β Set the number of times to try the same address. Default is 3 times.-ssend_delay β Delay the sending of the next group of addresses send_delay seconds. Default is 2 seconds.-wwait_time β Wait the peer reply for wait_time seconds. Default is 5 seconds.-pport β Specify an alternative port number. For default the port number is obtained searching theaspentry in/etc/services.-Vβ Show version information.
π ENVIRONMENT π
ASPCMDβ This variable could be used to store your preferred settings. An option set in this environment variable could be overridden or toggled from command line.
π BUGS π
UDP is an unreliable protocol, therefore there is a chance you will not find the host even if it is on line. π anyway, if you are sure that the peer is on line and asp aware, you could adjust the various parameters until you get a reply. At last you will find the correct settings for your particular needs. This until the RDM communication style will be implemented under Linux.
Obviously the hostname has to be unique among the possible IP addresses: asp will hook to the first correct reply.
bestie pls note: UDP said "trust me bro" and then did not come through. that's just how she is. π«Ά
π«Ά AUTHOR π«Ά
Stenio Brunetta <stenio@brunettaeperin.it>
Comments and suggestions are welcome.
β ACKNOWLEDGMENTS β
Steven N. Hirsch <shirsch@ibm.net> for v1.3 bug fix and for the verbose option. Colin Phipps <cphipps@doomworld.com> for the tmpnam security issue.
π₯ SEE ALSO π₯
aspd(8).
okay that's the whole page!! sending u so much love, this was Linux, February 1997, ASP(1) β go forth and find those hosts πβ¨ππ¦
π¦ where this page comes from
- ubuntu jammy: asp 1.8-8build1
- Copyright (C) 1996-2001 Stenio Brunetta ############
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms