Visit Our UNIX and Linux User Community


Resolve IP to Hostname?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Resolve IP to Hostname?
# 8  
Old 08-19-2009
For the most part linux commands have "man" pages that are accessible by typing "man commandname" sans the quotes. At your prompt type man nslookup and the system documentation will display. You system man pages are an invaluable resource as you learn your system. Good luck.
# 9  
Old 08-19-2009
Looks like your DNS server doesn't have a reverse lookup zone setup. You might try the command

Code:
host 192.168.8.101

but that will probably have the same result.

It also looks like you are using an external DNS server (probably from your ISP. iburst??) to try and do a reverse lookup on an internal address. That's not going to work.
# 10  
Old 08-20-2009
Should I change my server in nslookup to the linux server?



mglenney,
How do you know iBurst?
# 11  
Old 08-20-2009
Quote:
Should I change my server in nslookup to the linux server?
A couple of things would have to be in place for this to happen. First, your network would have to have a DNS server in place that has a reverse lookup zone configured and that address would have to be in the zone file.

Next, you would have to specify that DNS server when you run NSLOOKUP. You can probably specify it from the command line but if you just run nslookup without any options you'll be running nslookup interactively (the prompt should change to '>'). You can then change the server at the > prompt. So, for example, if the DNS server you wanted to query was at 192.168.8.1 your request would look something like this:

Code:
[you@yourserver]$ nslookup
> server 192.168.8.1
Default server: 192.168.8.1
Address: 192.168.8.1#53
> 192.168.8.101
Server:      192.168.8.1
Address:    192.168.8.1#53

101.8.168.192.in-addr.arpa        name = some.server.host.name
>

I knew you were using iburst because you pasted the results of your nslookup which showed the IP of the DNS server you were using. Since the address you posted was internet routable I figured you were setup to use your ISP's DNS server instead of an internal one.

I did a reverse lookup on that IP:

Code:
[me@myserver ~]$ host 196.2.97.234
234.97.2.196.in-addr.arpa domain name pointer wbs-196-2-97-234.wbs.co.za.

I then did a whois lookup of wbs.co.za at domaintools.com and it told me that domain is owned by iburst.
# 12  
Old 08-20-2009
Sorry - slow post

Last edited by chompy; 08-20-2009 at 02:12 PM.. Reason: SLOW POST - IGNORE
# 13  
Old 08-21-2009
I see. Thanx for all the help. It actually makes sense.

Will try and get back to you.
# 14  
Old 08-21-2009
Please read up on name service lookup. IP to host and host to IP can be resolved in two ways by default, using DNS or /etc/hosts file. You do not have DNS configured and that is reason for above error. You must have internal DNS to resolve this IP, or you add it manually to /etc/hosts file, then resolve it.

Dns client config file /etc/resolv.conf and nsswitch.conf
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #792
Difficulty: Easy
In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

2. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

3. Shell Programming and Scripting

Please help to resolve the below script

Dear Members, Please help me to resolve below script. The script is used to send the attachment in the mail with all the details. However in one of the incidents, the attachment in the mail was blank. Now the client is after me to get it resolved ASAP. So prompt response would be highly... (2 Replies)
Discussion started by: SKO_TC
2 Replies

4. UNIX for Advanced & Expert Users

Can I use bind9 to resolve only ONE hostname in a zone?

Hi there, I have the following problem. I have a Debian server with bind9. I can also use my ISP DNS server through the internet box (192.168.1.1). I would like to fool my client workstation to a local machine when they query for one specific hostname within a domain. I want to let the... (5 Replies)
Discussion started by: kokonut95
5 Replies

5. UNIX for Dummies Questions & Answers

Please resolve it

#!/bin/sh# 'clear'for i in $(seq -w 15 37)doecho $iecho The content in ZZ=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.co.../test/test.jsp`echo $ZA="Connection timed out."echo The content in Aecho $Aexpr "$A" : '..\(...\)'echo $Adone Hi,Please see the above program. The above... (9 Replies)
Discussion started by: veerumahanthi41
9 Replies

6. Shell Programming and Scripting

please resolve the below problem

#!/bin/sh # 'clear' for i in $(seq -w 15 37) do echo $i echo The content in Z Z=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp` echo $Z A="Connection timed out." echo The content in A echo $A expr "$A" : '..\(...\)' echo $A done ... (1 Reply)
Discussion started by: veerumahanthi41
1 Replies

7. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

8. Shell Programming and Scripting

Resolve a Variable

Hi I have a variable which is a path ie: UBERROR=/cobwrk/mchr/prodsup/ub/wrk/../error is there anyway I can get the output of an echo to read: #echo $UBERROR /cobwrk/mchr/prodsup/ub/error instead of #echo $UBERROR /cobwrk/mchr/prodsup/ub/wrk/../error Many thanks! (2 Replies)
Discussion started by: serm
2 Replies

9. UNIX for Dummies Questions & Answers

how do u resolve this????

Please help me on how to resolve: 1-unresponsive terminals 2-unresponsive applications 3-how to interrupt processe p.s unix/linux OS (1 Reply)
Discussion started by: zizu
1 Replies

10. IP Networking

Cannot Resolve Host Name

I am running LexMark MarkNetPro-3 print servers on my AIX network. All of the sudden, none of my printers will print anymore. I am getting an error message on the console: Unable to resolve host name. This message comes up everytime a user submits a print job. Any Ideas? (1 Reply)
Discussion started by: Docboyeee
1 Replies

Featured Tech Videos