Results 1 to 6 of 6

Thread: Ping returns the wrong name; nslookup OK

  1. #1
    Phil Tuttiett Guest

    Ping returns the wrong name; nslookup OK

    I have a webserver with two IP addresses - one is a NAT and the other is
    an external address. My internal dns server has the internal ip address
    for the host, and the external dns A record is hosted in the cloud
    (externally).

    On a Windows 2003 Server (latest patches) - ping www.myhost.com returns
    the external address, whereas nslookup www.wananga.com returns the
    internal address (as in 129.0.1.240).

    I have two dns entries loaded in network adapter - ipconfig /all shows

    Windows IP Configuration

    Host Name . . . . . . . . . . . . : kaitiaki
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : twor-otaki.ac.nz

    Ethernet adapter Wananga LAN:

    Connection-specific DNS Suffix . : twor-otaki.ac.nz
    Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter #2
    Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    DHCP Enabled. . . . . . . . . . . : No
    IP Address. . . . . . . . . . . . : 129.0.1.232
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    Default Gateway . . . . . . . . . : 129.0.1.1
    DNS Servers . . . . . . . . . . . : 129.0.1.251
    129.0.1.252
    Primary WINS Server . . . . . . . : 129.0.1.251
    Secondary WINS Server . . . . . . : 129.0.1.252

    Nslookup shows -

    C:\>nslookup www.wananga.com
    Server: tumatauenga.lan.twor-otaki.ac.nz
    Address: 129.0.1.251

    Name: www.wananga.com
    Address: 129.0.1.240


    But ping shows -

    C:\>ping www.wananga.com

    Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:

    Request timed out.
    Request timed out.

  2. #2
    Ace Fekay [MCT] Guest

    Re: Ping returns the wrong name; nslookup OK

    "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    news:%23A4wzNoMKHA.1280@TK2MSFTNGP04.phx.gbl...
    >I have a webserver with two IP addresses - one is a NAT and the other is an
    >external address. My internal dns server has the internal ip address for
    >the host, and the external dns A record is hosted in the cloud
    >(externally).
    >
    > On a Windows 2003 Server (latest patches) - ping www.myhost.com returns
    > the external address, whereas nslookup www.wananga.com returns the
    > internal address (as in 129.0.1.240).
    >
    > I have two dns entries loaded in network adapter - ipconfig /all shows
    >
    > Windows IP Configuration
    >
    > Host Name . . . . . . . . . . . . : kaitiaki
    > Primary Dns Suffix . . . . . . . :
    > Node Type . . . . . . . . . . . . : Hybrid
    > IP Routing Enabled. . . . . . . . : No
    > WINS Proxy Enabled. . . . . . . . : No
    > DNS Suffix Search List. . . . . . : twor-otaki.ac.nz
    >
    > Ethernet adapter Wananga LAN:
    >
    > Connection-specific DNS Suffix . : twor-otaki.ac.nz
    > Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter #2
    > Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    > DHCP Enabled. . . . . . . . . . . : No
    > IP Address. . . . . . . . . . . . : 129.0.1.232
    > Subnet Mask . . . . . . . . . . . : 255.255.252.0
    > Default Gateway . . . . . . . . . : 129.0.1.1
    > DNS Servers . . . . . . . . . . . : 129.0.1.251
    > 129.0.1.252
    > Primary WINS Server . . . . . . . : 129.0.1.251
    > Secondary WINS Server . . . . . . : 129.0.1.252
    >
    > Nslookup shows -
    >
    > C:\>nslookup www.wananga.com
    > Server: tumatauenga.lan.twor-otaki.ac.nz
    > Address: 129.0.1.251
    >
    > Name: www.wananga.com
    > Address: 129.0.1.240
    >
    >
    > But ping shows -
    >
    > C:\>ping www.wananga.com
    >
    > Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:
    >
    > Request timed out.
    > Request timed out.




    Does a ping from another machine give the same results?
    Is there a HOSTS file on the machine you are pinging from with a www entry
    and the external IP?

    --
    Ace

    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Please reply back to the newsgroup or forum for collaboration benefit among
    responding engineers, and to help others benefit from your resolution.

    Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
    Microsoft Certified Trainer

    For urgent issues, please contact Microsoft PSS directly. Please check
    http://support.microsoft.com for regional support phone numbers.


  3. #3
    Phil Tuttiett Guest

    Re: Ping returns the wrong name; nslookup OK

    Ace Fekay [MCT] wrote:
    > "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    > news:%23A4wzNoMKHA.1280@TK2MSFTNGP04.phx.gbl...
    >> I have a webserver with two IP addresses - one is a NAT and the other
    >> is an external address. My internal dns server has the internal ip
    >> address for the host, and the external dns A record is hosted in the
    >> cloud (externally).
    >>
    >> On a Windows 2003 Server (latest patches) - ping www.myhost.com
    >> returns the external address, whereas nslookup www.wananga.com returns
    >> the internal address (as in 129.0.1.240).
    >>
    >> I have two dns entries loaded in network adapter - ipconfig /all shows
    >>
    >> Windows IP Configuration
    >>
    >> Host Name . . . . . . . . . . . . : kaitiaki
    >> Primary Dns Suffix . . . . . . . :
    >> Node Type . . . . . . . . . . . . : Hybrid
    >> IP Routing Enabled. . . . . . . . : No
    >> WINS Proxy Enabled. . . . . . . . : No
    >> DNS Suffix Search List. . . . . . : twor-otaki.ac.nz
    >>
    >> Ethernet adapter Wananga LAN:
    >>
    >> Connection-specific DNS Suffix . : twor-otaki.ac.nz
    >> Description . . . . . . . . . . . : HP NC7781 Gigabit Server
    >> Adapter #2
    >> Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    >> DHCP Enabled. . . . . . . . . . . : No
    >> IP Address. . . . . . . . . . . . : 129.0.1.232
    >> Subnet Mask . . . . . . . . . . . : 255.255.252.0
    >> Default Gateway . . . . . . . . . : 129.0.1.1
    >> DNS Servers . . . . . . . . . . . : 129.0.1.251
    >> 129.0.1.252
    >> Primary WINS Server . . . . . . . : 129.0.1.251
    >> Secondary WINS Server . . . . . . : 129.0.1.252
    >>
    >> Nslookup shows -
    >>
    >> C:\>nslookup www.wananga.com
    >> Server: tumatauenga.lan.twor-otaki.ac.nz
    >> Address: 129.0.1.251
    >>
    >> Name: www.wananga.com
    >> Address: 129.0.1.240
    >>
    >>
    >> But ping shows -
    >>
    >> C:\>ping www.wananga.com
    >>
    >> Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:
    >>
    >> Request timed out.
    >> Request timed out.

    >
    >
    >
    > Does a ping from another machine give the same results?
    > Is there a HOSTS file on the machine you are pinging from with a www
    > entry and the external IP?
    >

    Ping from another machine gives the correct result.
    There isn't a hosts table entry - I've had to add one to force the
    internal IP to resolve correctly.

  4. #4
    Ace Fekay [MCT] Guest

    Re: Ping returns the wrong name; nslookup OK

    "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    news:eQcQGKMNKHA.5072@TK2MSFTNGP05.phx.gbl...
    > Ace Fekay [MCT] wrote:
    >> "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    >> news:%23A4wzNoMKHA.1280@TK2MSFTNGP04.phx.gbl...
    >>> I have a webserver with two IP addresses - one is a NAT and the other is
    >>> an external address. My internal dns server has the internal ip address
    >>> for the host, and the external dns A record is hosted in the cloud
    >>> (externally).
    >>>
    >>> On a Windows 2003 Server (latest patches) - ping www.myhost.com returns
    >>> the external address, whereas nslookup www.wananga.com returns the
    >>> internal address (as in 129.0.1.240).
    >>>
    >>> I have two dns entries loaded in network adapter - ipconfig /all shows
    >>>
    >>> Windows IP Configuration
    >>>
    >>> Host Name . . . . . . . . . . . . : kaitiaki
    >>> Primary Dns Suffix . . . . . . . :
    >>> Node Type . . . . . . . . . . . . : Hybrid
    >>> IP Routing Enabled. . . . . . . . : No
    >>> WINS Proxy Enabled. . . . . . . . : No
    >>> DNS Suffix Search List. . . . . . : twor-otaki.ac.nz
    >>>
    >>> Ethernet adapter Wananga LAN:
    >>>
    >>> Connection-specific DNS Suffix . : twor-otaki.ac.nz
    >>> Description . . . . . . . . . . . : HP NC7781 Gigabit Server Adapter
    >>> #2
    >>> Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    >>> DHCP Enabled. . . . . . . . . . . : No
    >>> IP Address. . . . . . . . . . . . : 129.0.1.232
    >>> Subnet Mask . . . . . . . . . . . : 255.255.252.0
    >>> Default Gateway . . . . . . . . . : 129.0.1.1
    >>> DNS Servers . . . . . . . . . . . : 129.0.1.251
    >>> 129.0.1.252
    >>> Primary WINS Server . . . . . . . : 129.0.1.251
    >>> Secondary WINS Server . . . . . . : 129.0.1.252
    >>>
    >>> Nslookup shows -
    >>>
    >>> C:\>nslookup www.wananga.com
    >>> Server: tumatauenga.lan.twor-otaki.ac.nz
    >>> Address: 129.0.1.251
    >>>
    >>> Name: www.wananga.com
    >>> Address: 129.0.1.240
    >>>
    >>>
    >>> But ping shows -
    >>>
    >>> C:\>ping www.wananga.com
    >>>
    >>> Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:
    >>>
    >>> Request timed out.
    >>> Request timed out.

    >>
    >>
    >>
    >> Does a ping from another machine give the same results?
    >> Is there a HOSTS file on the machine you are pinging from with a www
    >> entry and the external IP?
    >>

    > Ping from another machine gives the correct result.
    > There isn't a hosts table entry - I've had to add one to force the
    > internal IP to resolve correctly.



    That's odd. Something's up with the resolver service, unless it got hijacked
    with a DNS malware product. I was also thinking the hosts file location got
    hijacked, but since you mentioned you put an entry in there to force it,
    apparently that's not the case.

    Have you run a spyware scan? Try Adaware, then afterwards, run Malwarebytes
    (both free). Look in Add/Remove for anything you don't recognize, as well as
    Services for a service that doesn't look familiar.

    Ace

    Ace


  5. #5
    Phil Tuttiett Guest

    Re: Ping returns the wrong name; nslookup OK

    Ace Fekay [MCT] wrote:
    > "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    > news:eQcQGKMNKHA.5072@TK2MSFTNGP05.phx.gbl...
    >> Ace Fekay [MCT] wrote:
    >>> "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    >>> news:%23A4wzNoMKHA.1280@TK2MSFTNGP04.phx.gbl...
    >>>> I have a webserver with two IP addresses - one is a NAT and the
    >>>> other is an external address. My internal dns server has the
    >>>> internal ip address for the host, and the external dns A record is
    >>>> hosted in the cloud (externally).
    >>>>
    >>>> On a Windows 2003 Server (latest patches) - ping www.myhost.com
    >>>> returns the external address, whereas nslookup www.wananga.com
    >>>> returns the internal address (as in 129.0.1.240).
    >>>>
    >>>> I have two dns entries loaded in network adapter - ipconfig /all shows
    >>>>
    >>>> Windows IP Configuration
    >>>>
    >>>> Host Name . . . . . . . . . . . . : kaitiaki
    >>>> Primary Dns Suffix . . . . . . . :
    >>>> Node Type . . . . . . . . . . . . : Hybrid
    >>>> IP Routing Enabled. . . . . . . . : No
    >>>> WINS Proxy Enabled. . . . . . . . : No
    >>>> DNS Suffix Search List. . . . . . : twor-otaki.ac.nz
    >>>>
    >>>> Ethernet adapter Wananga LAN:
    >>>>
    >>>> Connection-specific DNS Suffix . : twor-otaki.ac.nz
    >>>> Description . . . . . . . . . . . : HP NC7781 Gigabit Server
    >>>> Adapter #2
    >>>> Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    >>>> DHCP Enabled. . . . . . . . . . . : No
    >>>> IP Address. . . . . . . . . . . . : 129.0.1.232
    >>>> Subnet Mask . . . . . . . . . . . : 255.255.252.0
    >>>> Default Gateway . . . . . . . . . : 129.0.1.1
    >>>> DNS Servers . . . . . . . . . . . : 129.0.1.251
    >>>> 129.0.1.252
    >>>> Primary WINS Server . . . . . . . : 129.0.1.251
    >>>> Secondary WINS Server . . . . . . : 129.0.1.252
    >>>>
    >>>> Nslookup shows -
    >>>>
    >>>> C:\>nslookup www.wananga.com
    >>>> Server: tumatauenga.lan.twor-otaki.ac.nz
    >>>> Address: 129.0.1.251
    >>>>
    >>>> Name: www.wananga.com
    >>>> Address: 129.0.1.240
    >>>>
    >>>>
    >>>> But ping shows -
    >>>>
    >>>> C:\>ping www.wananga.com
    >>>>
    >>>> Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:
    >>>>
    >>>> Request timed out.
    >>>> Request timed out.
    >>>
    >>>
    >>>
    >>> Does a ping from another machine give the same results?
    >>> Is there a HOSTS file on the machine you are pinging from with a www
    >>> entry and the external IP?
    >>>

    >> Ping from another machine gives the correct result.
    >> There isn't a hosts table entry - I've had to add one to force the
    >> internal IP to resolve correctly.

    >
    >
    > That's odd. Something's up with the resolver service, unless it got
    > hijacked with a DNS malware product. I was also thinking the hosts file
    > location got hijacked, but since you mentioned you put an entry in there
    > to force it, apparently that's not the case.
    >
    > Have you run a spyware scan? Try Adaware, then afterwards, run
    > Malwarebytes (both free). Look in Add/Remove for anything you don't
    > recognize, as well as Services for a service that doesn't look familiar.
    >
    > Ace
    >
    > Ace

    Nope -no spyware.
    Here's an interesting one...

    The server also hosts a DNS server, but for a different external domain.
    In discussion with a colleague in the office, I added a stub zone to a
    primary on the main internal dns server, the re-tried the lookup again.

    It now works correctly! I have removed the entries in the hosts table
    and dns is now being correctly resolved.

    So, it appears that if the server hosts a dns server, then the resolver
    looks there first, regardless of the settings on the network card.

  6. #6
    Ace Fekay [MCT] Guest

    Re: Ping returns the wrong name; nslookup OK

    "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    news:%231C1H6MNKHA.1796@TK2MSFTNGP02.phx.gbl...
    > Ace Fekay [MCT] wrote:
    >> "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    >> news:eQcQGKMNKHA.5072@TK2MSFTNGP05.phx.gbl...
    >>> Ace Fekay [MCT] wrote:
    >>>> "Phil Tuttiett" <phil.tuttiett@gmail.com> wrote in message
    >>>> news:%23A4wzNoMKHA.1280@TK2MSFTNGP04.phx.gbl...
    >>>>> I have a webserver with two IP addresses - one is a NAT and the other
    >>>>> is an external address. My internal dns server has the internal ip
    >>>>> address for the host, and the external dns A record is hosted in the
    >>>>> cloud (externally).
    >>>>>
    >>>>> On a Windows 2003 Server (latest patches) - ping www.myhost.com
    >>>>> returns the external address, whereas nslookup www.wananga.com returns
    >>>>> the internal address (as in 129.0.1.240).
    >>>>>
    >>>>> I have two dns entries loaded in network adapter - ipconfig /all shows
    >>>>>
    >>>>> Windows IP Configuration
    >>>>>
    >>>>> Host Name . . . . . . . . . . . . : kaitiaki
    >>>>> Primary Dns Suffix . . . . . . . :
    >>>>> Node Type . . . . . . . . . . . . : Hybrid
    >>>>> IP Routing Enabled. . . . . . . . : No
    >>>>> WINS Proxy Enabled. . . . . . . . : No
    >>>>> DNS Suffix Search List. . . . . . : twor-otaki.ac.nz
    >>>>>
    >>>>> Ethernet adapter Wananga LAN:
    >>>>>
    >>>>> Connection-specific DNS Suffix . : twor-otaki.ac.nz
    >>>>> Description . . . . . . . . . . . : HP NC7781 Gigabit Server
    >>>>> Adapter #2
    >>>>> Physical Address. . . . . . . . . : 00-0F-20-97-23-8F
    >>>>> DHCP Enabled. . . . . . . . . . . : No
    >>>>> IP Address. . . . . . . . . . . . : 129.0.1.232
    >>>>> Subnet Mask . . . . . . . . . . . : 255.255.252.0
    >>>>> Default Gateway . . . . . . . . . : 129.0.1.1
    >>>>> DNS Servers . . . . . . . . . . . : 129.0.1.251
    >>>>> 129.0.1.252
    >>>>> Primary WINS Server . . . . . . . : 129.0.1.251
    >>>>> Secondary WINS Server . . . . . . : 129.0.1.252
    >>>>>
    >>>>> Nslookup shows -
    >>>>>
    >>>>> C:\>nslookup www.wananga.com
    >>>>> Server: tumatauenga.lan.twor-otaki.ac.nz
    >>>>> Address: 129.0.1.251
    >>>>>
    >>>>> Name: www.wananga.com
    >>>>> Address: 129.0.1.240
    >>>>>
    >>>>>
    >>>>> But ping shows -
    >>>>>
    >>>>> C:\>ping www.wananga.com
    >>>>>
    >>>>> Pinging www.wananga.com [122.56.6.244] with 32 bytes of data:
    >>>>>
    >>>>> Request timed out.
    >>>>> Request timed out.
    >>>>
    >>>>
    >>>>
    >>>> Does a ping from another machine give the same results?
    >>>> Is there a HOSTS file on the machine you are pinging from with a www
    >>>> entry and the external IP?
    >>>>
    >>> Ping from another machine gives the correct result.
    >>> There isn't a hosts table entry - I've had to add one to force the
    >>> internal IP to resolve correctly.

    >>
    >>
    >> That's odd. Something's up with the resolver service, unless it got
    >> hijacked with a DNS malware product. I was also thinking the hosts file
    >> location got hijacked, but since you mentioned you put an entry in there
    >> to force it, apparently that's not the case.
    >>
    >> Have you run a spyware scan? Try Adaware, then afterwards, run
    >> Malwarebytes (both free). Look in Add/Remove for anything you don't
    >> recognize, as well as Services for a service that doesn't look familiar.
    >>
    >> Ace
    >>
    >> Ace

    > Nope -no spyware.
    > Here's an interesting one...
    >
    > The server also hosts a DNS server, but for a different external domain.
    > In discussion with a colleague in the office, I added a stub zone to a
    > primary on the main internal dns server, the re-tried the lookup again.
    >
    > It now works correctly! I have removed the entries in the hosts table and
    > dns is now being correctly resolved.
    >
    > So, it appears that if the server hosts a dns server, then the resolver
    > looks there first, regardless of the settings on the network card.



    Well, not true. I thought this was a client machine, not a server. Even if
    it is a DNS server, or any service running on a machine, it will not use
    itself unless you specifically type its own IP address as a DNS server in
    it's own IP properties. You can opt to not use itself by simply specifying a
    different DNS server in it's properties.

    Apparently the DNS service itself didn't have a reference to the other
    internal DNS server that hosts a copy of the internal zone, hence why it was
    resolving the external address. Once you've made a reference to it (either
    by a stub, conditional forwarder or secondary zone), then it can resolve it,
    otherwise it would use it's general forwarder (assuming to the internet) or
    the Root hints.

    Ace


Similar Threads

  1. Replies: 3
    Last Post: 05-02-2009, 02:27 PM
  2. Ping Returns Wrong Ip address
    By Sloane in forum Networking & Security
    Replies: 5
    Last Post: 07-01-2009, 08:17 AM
  3. Can nslookup dns but cannot ping name
    By Colarado in forum Networking & Security
    Replies: 3
    Last Post: 30-09-2008, 02:32 PM
  4. DNS Issues affecting Ping/Nslookup
    By Joel in forum Windows Server Help
    Replies: 3
    Last Post: 25-09-2008, 12:27 AM
  5. Ping fails to resolve name but nslookup OK
    By AXJ in forum Windows Server Help
    Replies: 5
    Last Post: 18-04-2008, 11:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,412,000.87329 seconds with 17 queries