Sponsored Content
Special Forums IP Networking Obtaining your external IP address using a Unix Utility Post 302312777 by inquen on Sunday 3rd of May 2009 10:32:56 AM
Old 05-03-2009
Thanks, using nslookup with my user name gives me my routers' IP address, and another IP address I'm not too familiar with, but it starts the same numbers in the first group, but the rest are different.

Do you know of any other utilities that would provide me with similar information?
 

10 More Discussions You Might Find Interesting

1. IP Networking

Obtaining IP address

How can UNIX systems obtain IP addresses? Can it obtain from Win 2000 Server, DHCP service, dynamically? (1 Reply)
Discussion started by: Raael
1 Replies

2. SCO

Looking for guidance in obtaining a job in Unix Administration

I recently took a training through a college, and have obtained the CUSA certification, but I've been looking and don't see any jobs in unix out there! Does anyone know of hidden job markets in the unix administration area, located in the Detroit - Michigan area? (4 Replies)
Discussion started by: pkali290
4 Replies

3. HP-UX

Connecting To An External Network Using A logical (PACKAGE) IP Address

Hie everyone, I am currently facing a problem whereby I can not connect to an external network from a package ip address on a HP-UX cluster. Below is the illustration: Primary Server IP Address : n.n.n.202 Secondary Server IP Address : n.n.n.212 Package IP Address : n.n.n.211 ... (1 Reply)
Discussion started by: cchilenga
1 Replies

4. IP Networking

Obtaining IP address from both my network interface

HI folks, I am developing a software which one of the module is to interchange the ip address of another active network interface's when making a socket connection. I would like to know whether there is any function call that would enable me to retrieve the ip address that is obtained by a... (2 Replies)
Discussion started by: citiz3n
2 Replies

5. OS X (Apple)

Getting the External IP Address of your Computer and Storing it in a File

My computer is one of three computer on our LAN. Our router is a Time Capsule. My computer is the only of of three computers that has been assigned a static IP address on the LAN, because it runs an Apache installation. I tinker around with web development from time to time, and I wanted to be... (7 Replies)
Discussion started by: Audacitor
7 Replies

6. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

7. OS X (Apple)

mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this? echo "This email body" | mailx -s "my subject" "email@hostname.com" There may be some setup required in sendmail or postfix?? OS = Snow Leopard 10.6 (4 Replies)
Discussion started by: FlyingSquirrel
4 Replies

8. Shell Programming and Scripting

External IP Address of Linux Server

Hi, I am trying to find the external IP address of a server "XXX". I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45 Later, i have executed "curl http://whatismyip.org". This time i got a different number 611.34.63.22 Out of these two numbers, what number... (1 Reply)
Discussion started by: forums123456
1 Replies

9. IP Networking

Ping domain indicates the external ip address and not the local ip

when i execute from local machine ping domainname i get the external ip address but i am on local dns and i expect the local ip address.. using nslookup : no problem so i cannot find why... thanks (2 Replies)
Discussion started by: activedms
2 Replies

10. UNIX for Beginners Questions & Answers

Grep a section from an UNIX file obtaining only part of the data

Hello, I have a log file that has several sections "BEGIN JOB, End of job" like in the following example: 19/06/12 - 16:00:57 (27787398-449294): BEGIN JOB j1(27787398-449294) JOB1 19/06/12 - 16:00:57 (27787398-449294): DIGIT: 0 number of present logs : 1 19/06/12 - 16:00:57... (4 Replies)
Discussion started by: mvalonso
4 Replies
EXPN(1) 						      General Commands Manual							   EXPN(1)

NAME
expn - recursively expand mail aliases SYNOPSIS
expn [-a] [-v] [-w] [-d] [-1] user[@hostname] [user[@hostname]]... DESCRIPTION
expn will use the SMTP expn and vrfy commands to expand mail aliases. It will first look up the addresses you provide on the command line. If those expand into addresses on other systems, it will connect to the other systems and expand again. It will keep doing this until no further expansion is possible. OPTIONS
The default output of expn can contain many lines which are not valid email addresses. With the -aa flag, only expansions that result in legal addresses are used. Since many mailing lists have an illegal address or two, the single -a, address, flag specifies that a few ille- gal addresses can be mixed into the results. More -a flags vary the ratio. Read the source to track down the formula. With the -a option, you should be able to construct a new mailing list out of an existing one. If you wish to limit the number of levels deep that expn will recurse as it traces addresses, use the -1 option. For each -1 another level will be traversed. So, -111 will traverse no more than three levels deep. The normal mode of operation for expn is to do all of its work silently. The following options make it more verbose. It is not necessary to make it verbose to see what it is doing because as it works, it changes its argv[0] variable to reflect its current activity. To see how it is expanding things, the -v, verbose, flag will cause expn to show each address before and after translation as it works. The -w, watch, flag will cause expn to show you its conversations with the mail daemons. Finally, the -d, debug, flag will expose many of the inner workings so that it is possible to eliminate bugs. ENVIRONMENT
No environment variables are used. FILES
/tmp/expn$$ temporary file used as input to nslookup. SEE ALSO
aliases(5), sendmail(8), nslookup(8), RFC 823, and RFC 1123. BUGS
Not all mail daemons will implement expn or vrfy. It is not possible to verify addresses that are served by such daemons. When attempting to connect to a system to verify an address, expn only tries one IP address. Most mail daemons will try harder. It is assumed that you are running domain names and that the nslookup(8) program is available. If not, expn will not be able to verify many addresses. It will also pause for a long time unless you change the code where it says $have_nslookup = 1 to read $have_nslookup = 0. Lastly, expn does not handle every valid address. If you have an example, please submit a bug report. CREDITS
In 1986 or so, Jon Broome wrote a program of the same name that did about the same thing. It has since suffered bit rot and Jon Broome has dropped off the face of the earth! (Jon, if you are out there, drop me a line) AVAILABILITY
The latest version of expn is available through anonymous ftp at ftp://ftp.idiom.com/pub/muir-programs/expn. AUTHOR
David Muir Sharnoff <muir@idiom.com> 7th Edition March 11, 1993 EXPN(1)
All times are GMT -4. The time now is 07:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy