Announcement

Collapse
No announcement yet.

Resolving one host name into two different IP addresses

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resolving one host name into two different IP addresses

    Using SBS2003 SP1 Standard Edition & Exchange 2003 SP2.

    LAN: Server name: serverbox.home.local with LAN IP address 192.168.0.1
    DNS zone in my LAN is home.local

    WAN: External IP address 111.222.333.15 (bogus) from ISP
    DNS name of my WAN connection: bogus.isp.com
    Regular website of ISP: www.isp.com with IP 111.222.333.42 (bogus)

    When I am anywhere on the internet, the command "ping bogus.isp.com" results in a working reply from 111.222.333.15.
    The command "ping www.isp.com" results in a working reply from 111.222.333.42. This is all fine.

    When I am in the office, the command "ping bogus.isp.com" results in a working reply from 111.222.333.15 and www.isp.com returns 111.222.333.42. That's nice, but I want something different.

    What I want is a different IP address for bogus.isp.com when I am on my LAN.
    The command "ping bogus.isp.com" should result in reply from 192.168.0.1.
    The command "ping www.isp.com" should still reply from 111.222.333.42.

    So I tried to add the host bogus.isp.com in the DNS of serverbox.home.local with IP 192.168.0.1. No luck.
    bogus.isp.com is translated to bogus.isp.com.home.local.

    Have tried adding a point (bogus.isp.com.) but the DNS gui refuses that.

    Have added a new primary zone isp.com to my DNS, but then I can't find www.isp.com (and all the other ISP hosts) anymore. Removed this test.

    Who has the working solution here?

  • #2
    Re: Resolving one host name into two different IP addresses

    Hello,
    The only way to have it done is to create the isp.com primary zone on your internal DNS server( as you have already done) and manually add all the host you are interested in this zone.
    Of course host bogus.isp.com will have its private address.
    Regards,
    Csaba
    Regards,
    Csaba Papp
    MCSA+messaging, MCSE, CCNA
    ...............................
    Remember to give credit where credit is due and leave reputation points where appropriate
    .................................

    Comment


    • #3
      Re: Resolving one host name into two different IP addresses

      Exactly, so internal clients will resolve to the bogus IP, but external clients will use the real IP.

      You could also create a HOSTS file with the right syntax and info, and place it on ALL the local clients, but DNS is much easier to work with.
      Cheers,

      Daniel Petri
      Microsoft Senior Premier Field Engineer
      MCSA/E, MCTS, MCITP, MCT

      Comment


      • #4
        Re: Resolving one host name into two different IP addresses

        Stepping back and asking a stupid question:
        Hemmo
        Why do you want to do this?
        TIA

        Steven Teiger [SBS-MVP(2003-2009)]
        http://www.wintra.co.il/
        sigpic
        Iím honoured to have been selected for the SMB 150 list for 2013. This is the third time in succession (no logo available for 2011) that I have been honoured with this award.

        We donít stop playing because we grow old, we grow old because we stop playing.

        Comment

        Working...
        X