nslookup output


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting nslookup output
# 1  
Old 11-24-2009
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 anyone let me know what this exactly mean?
# 2  
Old 11-24-2009
From man page:

lserver Domain
Changes the default server to the value specified by the Domain parameter. The lserver subcommand uses the initial server to look up information about the domain.
The server subcommand uses the current default server. If an authoritative answer cannot be found, the names of any additional servers that might have the answer are
returned.
# 3  
Old 11-24-2009
Quote:
Originally Posted by Rajakct84
Hi All,

If I give the hostname followed by nslookup, I get the output like below,

commandprompt>nslookup efgh
Quote:
Using /etc/hosts on: xyz
looking up FILES
This means nslookup is looking at files on your host.

Code:
Trying DNS

This means nslookup did not find a good match in the files and is looking for a nameserver.

Quote:
Non-authoritative answer:
Name: abcd
Address: 47.47.47.47
Aliases: efgh
This means nslookup found a answer from a secondary DNS server, not the original server.
# 4  
Old 11-25-2009
Thanks Neo
# 5  
Old 11-25-2009
/etc/nsswitch.conf is the file which has more ... Name Service Switch config file.
This file should be sorted with the most-used services at the beginning.

I usually edit host part to use the sequence needed ..
hosts: files nisplus nis dns
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. Solaris

Further nslookup options if any !!

Hi , I have a requirement to find the aliases by doing an nslookup on the Cname. If i do an nslookup on the alias name i get the Cname , but i need the cname from alias name. eg: Hostname = acb.example.com Virtual name= abcvirtual.example.com nslookup abcvirtual.example.com will... (3 Replies)
Discussion started by: mpics66
3 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. 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

9. UNIX for Dummies Questions & Answers

nslookup on linux ???

Hi I usually use solaris but Im working right now with a Linux box and I cannot find the nslookup command. Does Linux use this command or have an other one to do dns querys?? Thanks and sorry for such a dumb question.. :) (2 Replies)
Discussion started by: piltrafa
2 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