Re: get IPaddress

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ace Fekay [MVP] (PleaseSubstituteMyActualFirstName&LastNameHere_at_hotmail.com)
Date: 09/16/04


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


Relevant Pages

  • Re: Dual Nics on different networks?
    ... doesn't register with your WINS or DNS server, ... show you the sort of problem that multihoming your server can cause and ways ... > server gets really weird ldap errors and communication ...
    (microsoft.public.windows.server.networking)
  • Re: Dual Nics on different networks?
    ... controllers then how would your backup server be able to ... >doesn't register with your WINS or DNS ... >show you the sort of problem that multihoming your server ...
    (microsoft.public.windows.server.networking)
  • Re: Complaints of some outside entities not able to send me email.
    ... It appears that your exchange server is properly configured in DNS. ... Leif ... > inside my private LAN, ...
    (microsoft.public.exchange2000.connectivity)
  • Issues migrating SBS 2003 domain to Server 2008 Standard
    ... We are stuck migrating our SBS 2003 domain to Server 2008. ... Fatal Error:DsGetDcName (SRV-EXCH) call failed, ... Verify your Domain Name Sysytem (DNS) is ... network connectivity to a domain controller. ...
    (microsoft.public.windows.server.sbs)
  • Re: AD management snap in cannot find DC (netdiag /v workstation)
    ... The name.local entries are used by my apache server to implement ... change button, more button, the "Primary DNS suffix of this ... Attr: subschemaSubentry ... Owner of the binding path: ...
    (microsoft.public.windows.server.active_directory)