Further nslookup options if any !!


 
Thread Tools Search this Thread
Operating Systems Solaris Further nslookup options if any !!
# 1  
Old 02-26-2010
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 give canonical name= acb.example.com
i need nslookup abc.example.com to give the alias name .
Can some tell if any options are there. Any utility is fine . nslookup/dig/host

---------- Post updated at 11:29 AM ---------- Previous update was at 11:07 AM ----------

Correcting a typo



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 alias name if i give cname.

eg: Hostname = acb.example.com
Virtual name= abcvirtual.example.com
nslookup abcvirtual.example.com will give canonical name= acb.example.com
i need nslookup abc.example.com to give the alias name .

Can some tell if any options are there. Any utility is fine . nslookup/dig/host

Thanks
# 2  
Old 02-26-2010
DNS doesn't do everythimng, sometimes you need to search /etc/hosts
Code:
grep 'abcvirtual' /etc/hosts

If this is not what you meant please clarify.
# 3  
Old 02-26-2010
According to that article, you can't query aliases.
DNS aliases
# 4  
Old 02-27-2010
Jim the idea is to lookup from the DNS server not from the the local hostfile. We set up the aliases in the DNS server not in the local hosts file.

My aim is to resolve the alias name if i do a lookup on the actual name.
By default nslookup on alias will give the actual ( CNAME) hostname, its the other way i want.


But as per jilliagre link it seems not possible. I did some googling myself but in vain.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. IP Networking

nslookup command?

Hai guys, In which way does the command,"nslookup", will be helpful? Please give me examples. Thanks. (5 Replies)
Discussion started by: Felicia23
5 Replies

5. UNIX for Advanced & Expert Users

nslookup problem

I am having trouble configuring BIND 8.3 on Solaris 9. When I run nslookup, I get this error/message: test# nslookup *** Can't find server name for address 192.168.1.31: Non-existent host/domain *** Default servers are not available I double checked everything and I can't figure this out. I... (8 Replies)
Discussion started by: xnightcrawl
8 Replies

6. 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

7. 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

8. 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