Command to show alias name for ipaddress


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command to show alias name for ipaddress
# 1  
Old 09-06-2018
Command to show alias name for ipaddress

command to show alias name for ipaddress
for example:

Code:
nslookup 192.168.1.10
Name:    webqa.com
Address:  192.168.1.10
 Aliases:  info.com

Moderator's Comments:
Mod Comment I don't think this question needs high expertise. Moved from "UNIX for Advanced & Expert Users"
Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-06-2018 at 09:02 AM.. Reason: Moved from UNIX for Advanced & Expert Users; added CODE tags.
# 2  
Old 09-07-2018
I am not sure what your question is, as you already have found nslookup.

Anyway, you should use dig (domain information groper) instead. See here for more information.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alias command syntax

Hi all, I want to add a shortcut "xmll" to my .cshrc file. By using "xmll" I want the following command to be executed: find . -type f -name 'T*.xml' > xml_list.txt BUT: alias xmll 'find . -type f -name 'T*.xml' > xml_list.txt' doesn't work. What is the correct syntax? Thank... (7 Replies)
Discussion started by: friend
7 Replies

2. Solaris

Show complete command on command line when we use 'ps'

Hi, When I query using ps -ef, the complete command is not displayed and is truncated. Can you please tell me a method to resolve this ? I have tried the below. ps -ef | cat ps -ef | grep imp >/tmp/t1.txt /usr/ucb/ps -auxw pargs <pid> /usr/ucb/ps -aefyl | grep imp Thanks (11 Replies)
Discussion started by: mk1216
11 Replies

3. Shell Programming and Scripting

Alias command help

Hello, I'm attempting to configure shell settings in my new Macbook. The standard unix command line 'alias' doesn't seem to be working: bash-3.2$ alias dir ls -la bash: alias: dir: not found bash: alias: ls: not found bash: alias: -la: not found bash-3.2$ alias dir 'ls -la' bash:... (1 Reply)
Discussion started by: palex
1 Replies

4. UNIX for Dummies Questions & Answers

cp command not working with alias

Hi Friends, I have added some aliases in .bash_profile file under the root folder. Its works fine and very useful, but does not go well with cp command. alias deploy="cd /usr/local/tomcat/webapp" alias artifacts="cd /usr/local/artifacts" but when i try to cp from artifacts folder... (2 Replies)
Discussion started by: prashdeep
2 Replies

5. Shell Programming and Scripting

is there command to show the fs on a directory?

On Solaris, is there a command which can show the file system of a specific directory? In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS". Is there a easy way to figure it out? (3 Replies)
Discussion started by: sleepy_11
3 Replies

6. Shell Programming and Scripting

complicated alias command

hi guys i m making one alias which will set variable , invoke sqlplus and also set prompt of sqlplus,,i have made successfully upto invoking sqlplus in unix but cant pass command in sqlplus here is the command alias sett='export ORACLE_SID=devdb2;sqlplus system/system@test' now this... (3 Replies)
Discussion started by: tapia
3 Replies

7. UNIX for Dummies Questions & Answers

alias command within .profile

Please could someone advise me the command - to set up aliases commands within a .profile using shell sh regards venhart (13 Replies)
Discussion started by: venhart
13 Replies

8. UNIX for Advanced & Expert Users

alias command in script

How can I embed alias command inside the unix script? Script: echo "...." ... ... alias aa=/usr/bin/telnet ... ...The above script is not working. If I type aa hostname in the command prompt 'TELNET' terminal is not opening. Regards,... (2 Replies)
Discussion started by: sharif
2 Replies

9. UNIX for Advanced & Expert Users

Alias a command

Hi 'm executing a java program from my shell script on solaris 9 as $JAVA_HOME\bin\java -ms32m -mx128m -classpath $CLASSPATH com.abc.fwk,abcServer.abcfwkServer $1 & where $1 is port number when i do ps -ef, it shows whole command , i want to give this some alias name as abcProcess, so... (2 Replies)
Discussion started by: b_garima
2 Replies

10. UNIX for Advanced & Expert Users

alias for rm command

Hi, i want to make alias for rm command. It should actually move the file to a directory in my home. Say if i type %rm abc.txt the command should expand to %mv abc.txt ~ashishp/trash How should I write the alias for this? -Ashish (8 Replies)
Discussion started by: shriashishpatil
8 Replies
Login or Register to Ask a Question