nslookup command?


 
Thread Tools Search this Thread
Special Forums IP Networking nslookup command?
# 1  
Old 02-09-2009
nslookup command?

Hai guys,
In which way does the command,"nslookup", will be helpful? Please give me examples.
Thanks.
# 2  
Old 02-09-2009
It gives you information about internet sites and domains

If you use it from the command line:
Code:
nslookup mysite.com
nslookup 1.2.3.4

This gives additional information as well as validates the name/ip address.
To go into "interactive mode" just type nslookup
You can read the man page to see what you can do there.

Not everything will work - depending on the local site's security policy and/or the remote site's security policy.
# 3  
Old 02-09-2009
Thanks-jim mcnamara
# 4  
Old 02-11-2009
nslookup provides additional info about dns, particularly record info, has a lot of possible switches to get specific info about a record. Also can be run interactively. You can use it to get ip address for domain then dig further to get record info. For example if troubleshooting email, you can use it to make sure mx records are present and they are working properly.
# 5  
Old 02-11-2009
I would suggest using DIG for DNS lookups/troubleshooting.
Very powerful and returns more information.

DIG output:
Code:
U:\>dig www.unix.com

; <<>> DiG 9.3.1 <<>> www.unix.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 80
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;www.unix.com.                  IN      A

;; ANSWER SECTION:
www.unix.com.           120     IN      A       81.17.242.186

;; AUTHORITY SECTION:
unix.com.               381     IN      NS      ns1.sitelutions.com.
unix.com.               381     IN      NS      ns5.sitelutions.com.
unix.com.               381     IN      NS      ns2.sitelutions.com.
unix.com.               381     IN      NS      ns4.sitelutions.com.
unix.com.               381     IN      NS      ns3.sitelutions.com.

;; ADDITIONAL SECTION:
ns1.sitelutions.com.    170479  IN      A       66.117.40.216
ns2.sitelutions.com.    170479  IN      A       69.26.176.28
ns3.sitelutions.com.    170480  IN      A       66.231.180.140
ns4.sitelutions.com.    170480  IN      A       69.26.176.208
ns5.sitelutions.com.    31857   IN      A       69.93.94.154

;; Query time: 406 msec
;; SERVER: <hidden>
;; WHEN: Wed Feb 11 12:36:01 2009
;; MSG SIZE  rcvd: 228

NSLOOKUP output:

Code:
U:\>nslookup www.unix.com
Server:  <hidden>
Address:  <hidden>

Non-authoritative answer:
Name:    www.unix.com
Address:  81.17.242.186

# 6  
Old 02-13-2009
Thanks-techlinux,Lazydog
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk nslookup

Hi, I have a rather simple awk statement to perform an nslookup on a file (list of IPs). If the lookup yields a result, then it sends it to a file. If no result, there is no output. I've been trying to use !NR or !NF with an if statement to make the output state "NA" if there is no result,... (5 Replies)
Discussion started by: umang2382
5 Replies

2. Shell Programming and Scripting

nslookup hanging

Hey folks. Long time lurker, first time poster. I'm a bit of a newbie at "coding" (obviously, scripting is a teensy bit different than coding) and I've run into a problem that I just can't seem to get around. I'm going through a list of servers to check their name, IP, reverse-NSLOOKUP name and... (2 Replies)
Discussion started by: Bearwhale
2 Replies

3. Solaris

nslookup command

hi, I am new in Solaris 10 , i am installing a software in solaris 10, while performing pre requisite nslookup command should return without error, and the IP address and host should match those listed in the etc/hosts file, but nslookup command show the below error , can anybody tell me how i... (4 Replies)
Discussion started by: zeeshan047
4 Replies

4. Emergency UNIX and Linux Support

Nslookup!!! Please look up!!!

Hi all Nslookup command returns!!!! Code: nslookup 10.91.44.29 Server: 127.0.0.1 Address: 127.0.0.1#53 29.44.91.in-addr.arpa name = station1.example.com Code: nslookup station1.example.com Server: 127.0.0.1 Address: 127.0.0.1#53 Name: ... (4 Replies)
Discussion started by: anishkumarv
4 Replies

5. Shell Programming and Scripting

nslookup: am I doing it right?

Hi guys, I'm back to get some help again :) I have a file that has a list of IP addresses, and I use nslookup in my script to resolve hostnames of those IPs. the problem I'm facing is that I not all the hostnames got resolved! and I don't know why. sometimes the same duplicate IP returns a... (8 Replies)
Discussion started by: Abdulelah
8 Replies

6. Shell Programming and Scripting

nslookup output

Hi All, If I give the hostname followed by nslookup, I get the output like below, commandprompt>nslookup efgh Using /etc/hosts on: xyz looking up FILES Trying DNS Non-authoritative answer: Name: abcd Address: 47.47.47.47 Aliases: efgh I am not sure on the bolded ones. Can... (4 Replies)
Discussion started by: Rajakct84
4 Replies

7. UNIX for Advanced & Expert Users

nslookup for Unix

I am connecting from windows via Putty to some other Unix server. How can I display my current windows MachineName/NTID in putty? Thanks :) (4 Replies)
Discussion started by: som.nitk
4 Replies

8. IP Networking

nslookup strangness

hi, what would cause the nslookup to work one way but not the other? for most machine it works both ways. >nslookup 172.18.10.235 Server: 172.16.17.3 Address: 172.16.17.3#53 235.10.18.172.in-addr.arpa name = machine1.prod.local >nslookup machine1 Server: ... (3 Replies)
Discussion started by: purest
3 Replies

9. Shell Programming and Scripting

NSLOOKUP script

Hi Anyone know of a quick and simple way to script an NSLOOKUP's from a list/text file? Thanks, Gav (1 Reply)
Discussion started by: gavcollins
1 Replies

10. UNIX for Advanced & Expert Users

named and nslookup

Guys , Am using Linux - Red Hat 6.1 . My DNS and nslookup command was working fine and ppl. can resolve through this server . but i changed something in /etc/named.conf , that stopped the DNS . The named proccess is working , but nslookup command is not , i get this error message : ... (3 Replies)
Discussion started by: tamemi
3 Replies
Login or Register to Ask a Question