Re: get IPaddress
From: Ace Fekay [MVP] (PleaseSubstituteMyActualFirstName&LastNameHere_at_hotmail.com)
Date: 09/16/04
- Next message: Ace Fekay [MVP]: "Re: outlook refreshing"
- Previous message: Ace Fekay [MVP]: "Re: print cant find DC but its there anyway????"
- In reply to: Doug Marks: "get IPaddress"
- Next in thread: Doug Marks: "Re: get IPaddress"
- Reply: Doug Marks: "Re: get IPaddress"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 20:51:34 -0400
In news:029201c49b50$af773290$a301280a@phx.gbl,
Doug Marks <dma2i@allstate.com> made a post then I commented below
> The scenario is, a multihomed machine where the second NIC
> is in a private LAN using the 192.168... addresses. The
> DNS name for this machine is a0185-app0344-s(using
> 10.66.?.? class A network) the host file, for the private
> LAN) is set to resolve app0344-pn to 192.168.200.44. If
> you ping "a0185-app0344-s" from inside the box it resolves
> to the 192.168. address, but from the outside it resolves
> the 10.66 address. I have found the same results via C#
> code running the "GetIPAddress" function. The problem is
> that if I ping or get the IP via code for "a0185-app0344-
> s" how can it resolve the private LAN IP of 192.168.200.44
> when it is not associated with that machine name? This
> really causes issues in one of our tools that checks IP
> addresses because it runs as a service locally on each
> server it always returns the private IP and I need the
> public. ANY ideas???
Since DNS is aware of the querying client's IP address, and there are two
records for this machine name under the zone, DNS tries to give the best
answer based on the querying machine's IP subnet.
Is this server a DNS server or a DC or both? Is there a reason this DNS, if
it is a DC or DNS server, is multihomed? Just to point out, (discussed a few
times in this group), multihoming a DC/DNS, if it is that, is very
problematic, including with some machines that serves a production app.
There are steps you can follow on this DC or server, including some registry
changes to only force the internal IP to register into DNS so only that
record responds.
If the machine is a NAT server, it would be beneficial and alot less
headaches to get a Linksys, Netgear, etc, router to perform NAT for you and
single home this server.
If you can confirm my assumptions, or able to give us an ipconfig /all, that
would help towards a diagnosis. Thanks!
-- Regards, Ace Please direct all replies ONLY to the Microsoft public newsgroups so all can benefit. This posting is provided "AS-IS" with no warranties or guarantees and confers no rights. Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP Microsoft Windows MVP - Windows Server - Directory Services Security Is Like An Onion, It Has Layers HAM AND EGGS: A day's work for a chicken; A lifetime commitment for a pig. -- =================================
- Next message: Ace Fekay [MVP]: "Re: outlook refreshing"
- Previous message: Ace Fekay [MVP]: "Re: print cant find DC but its there anyway????"
- In reply to: Doug Marks: "get IPaddress"
- Next in thread: Doug Marks: "Re: get IPaddress"
- Reply: Doug Marks: "Re: get IPaddress"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|