Two-in-one DNS server with BIND9

Discussion in 'HOWTO-Related Questions' started by sotiris1821, Feb 28, 2006.

  1. sotiris1821

    sotiris1821 New Member

    When you include the external zone file in the internal view, you can't have the same hostname pointing to different IP addresses..
    I would like to have point to externally and point to internally ...

    Any solutions for this ? :eek:
  2. falko

    falko Super Moderator Howtoforge Staff

    Why don't you let it point to and then let your router forward all requests to
  3. sotiris1821

    sotiris1821 New Member

    Because I want to keep internal traffic internal (and accounted only once, as internal) and not travel out-and-in again between two routers (internet-dmz and internal-lan)..
  4. falko

    falko Super Moderator Howtoforge Staff

    I see two solutions for your problem: you change the hosts file on your clients so that points to an internal IP address:

    Or you set up an internal DNS server that resolves to your internal IP address and forwards all other requests to the "real" nameservers, and then you let the client PCs use that nameserver as the primary.
  5. sotiris1821

    sotiris1821 New Member

    I ended up using two independent files (I did not include the external zone file in the internal).. The gotcha is the opposite of what is stated in the howto..


Share This Page