Operating System - HP-UX
1819504 Members
3208 Online
109603 Solutions
New Discussion юеВ

My PC's IP address on Unix Server Appears Different with My Real IP

 
SOLVED
Go to solution
morganelan
Trusted Contributor

My PC's IP address on Unix Server Appears Different with My Real IP

Hi Unix Gurus,
My client Ip address is 10.213.2.107 but why on my Unix Server, it appears as 10.213.1.129.This ip is given by our windows dhcp server and on our Unix Server we do not configure dhcp but we have bootptab for jet direct configurations.How to find out which dhcp server that give this 10.234.1.129 ip address?But this is very strange if I login again it appears the correct ip again as 10.213.2.107.Any replies will be appreciated....
Kamal Mirdad
20 REPLIES 20
RAC_1
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

nslookup 10.234.1.129
nslookup "client_name"

Is it same?? How does hp-ux resolve the host names?? What it uses first?? Check /etc/nsswitch.conf file.
There is no substitute to HARDWORK
morganelan
Trusted Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Yes nslookup 10.213.1.129 return the same with nslookup Client-Name.This is my /etc/nsswitch.conf :

# more /etc/nsswitch.conf
# /etc/nsswitch.conf:
#
#hosts: files [NOTFOUND=continue] dns [NOTFOUND=return]
hosts: dns files
Kamal Mirdad
Torsten.
Acclaimed Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

If your client is running windows, do a

ipconfig /all

(on the client)

for detailed information about DHCP.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Arunvijai_4
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Do you have any IP masquerading software installed on client's machine ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Nemer_1
Regular Advisor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Hi,

this sounds like an incorrect entry in your DNS server. you need to remove this record from the DNS.

try to ping 10.213.2.107
is it reachable from the unix machine?


Muthukumar_5
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

what is in /etc/nsswitch.conf file for hosts: entry. Is there any entries in /etc/hosts file?

That may be a problem too. Check from unix machine as,

# nslookup 10.213.2.107
# nslookup 10.213.1.129

Post results.

hth.
Easy to suggest when don't know about the problem!
morganelan
Trusted Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

# nslookup 10.213.2.107
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.2.107"
#
# nslookup 10.213.1.129
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.1.129"
Kamal Mirdad
Borislav Perkov
Respected Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Hi Morganelan,

Your PC DNS record is not accurate for both addresses or there is an old record of the current MAC address of your PC network card in DNS server or maybe in DHCP server database. You need to make changes on DNS server, maybe rebuilding the records or something like.

Regards,
Borislav
VEL_1
Valued Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Hi,

Check your server & in firewall setting whether you have done any IP Masquerading.

Thanks.
Nemer_1
Regular Advisor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

sorry what did you mean by :

"Yes nslookup 10.213.1.129 return the same with nslookup Client-Name"

in your first response & the nslookup results in the second response:

"# nslookup 10.213.2.107
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.2.107"
#
# nslookup 10.213.1.129
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.1.129"

As there in no hostname available in the DNS for 10.213.1.129
Muthukumar_5
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

what is your routing table entries?

netstat -rn
netstat -in

May be a problem with routing from windows -> unix or vice versa.

From windows-->

a) tracert 10.213.2.107
b) tracert 10.213.1.129

From Unix machine -->

a) traceroute

Post this information.

hth.

Easy to suggest when don't know about the problem!
morganelan
Trusted Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Sorry, I have mistaken typing in the first reply.
If I do nslookup in windows client, it looks like this:
C:\>nslookup 10.213.1.129
Server: dnsserver.mycompany.com
Address: 10.213.0.61

*** dnsserver.mycompany.com can't find 10.213.1.129: Non-existent domain

C:\>nslookup client1
Server: dnsserver.mycompany.com
Address: 10.213.0.61

Name: client1.mycompany.com
Address: 10.213.1.129

If I do nslookup from my Unix Server, it looks like:
# nslookup 10.213.2.107
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.2.107"
#
# nslookup 10.213.1.129
Name Server: dnsserver.mycompany.com
Address: 10.213.0.61

Trying DNS
looking up FILES
*** No hostname information is available for "10.213.1.129"
Kamal Mirdad
VEL_1
Valued Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Muthukumar_5
Honored Contributor
Solution

Re: My PC's IP address on Unix Server Appears Different with My Real IP

From windows:

host -> ip is resolving out. But reverse of ip-> host is resolving. It is because of dns reverse lookup setting.

From Unix:

It is not registered with dns. You have to register your unix machine ip-address / hosname with dns. Or else,

create /etc/hosts file as,

FQDN

Change /etc/nsswitch.conf -->

hosts: files dns

It will do host -> ip and ip-> host resolvation.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Can you post your tracert and traceroute results ? Also, Are there any IP Masqueraders in your Firewall ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
morganelan
Trusted Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Yes Nemer, you are right in /etc/hosts we don't have ip 10.213.2.107 and 10.213.1.129, because both come from our windows dns server.
Kamal Mirdad
Muthukumar_5
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

We usually use /etc/hosts or C:\Windows\system32\drivers\etc\hosts to update IP or hostame or FQDN. It is good to keep command hosts file to do forward lookup and reverse lookup.

Try to set up /etc/nsswitch.conf hosts: resolvation with files and then dns next.

hth.

Easy to suggest when don't know about the problem!
Nemer_1
Regular Advisor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Hi,
is your DNS server is microsoft DNS server?

if yes...is your DHCP server setted to update the DNS server records??

it seems not...
Muthukumar_5
Honored Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

You are using only 10.213.0.61 as nameserver then try to update records in that. On getting update in dns records in 10.213.0.61, you can change resolvation of hosts: with /etc/resolv.conf as dns files. Before that to resolve this, you have to records in files of windows & unix. (Temporary solution to make nslookup to get success).

hth.
Easy to suggest when don't know about the problem!
morganelan
Trusted Contributor

Re: My PC's IP address on Unix Server Appears Different with My Real IP

Thanks all of you ......
Kamal Mirdad