• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Configure BIND as Nameserver for internal IP

Scheduled Pinned Locked Moved DHCP and DNS
5 Posts 3 Posters 2.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    ploodoo
    last edited by Mar 2, 2017, 10:54 PM

    Hi
    As subject describe. I try to configure BIND to route internal Names to expectet IP's.

    Firewall:
    IP PFSense on LAN: 192.168.1.10
    Under General Setup -> Host:pfsense, Domain:test.com

    Server 1 IP: 192.168.1.101
    Server 2 IP: 192.168.1.102

    I add two records to BIND:
    server1, Type A, IP 192.168.1.101
    server2, Type A, IP 192.168.1.102

    When I enable the BIND server, I reach the servers with: (server1.test.com 192.168.1.101 or server1.test.com 192.168.1.102).
    BUT, i can't reach the internet anymore. When I deactivate the BIND server, here we go I reach internet again. Activate, no Internet.

    What do I wrong? My goal is, that my BIND is THE DNS. But only for names which are defined. Everything else should be answert by (hmmm provider?) DNS.

    1 Reply Last reply Reply Quote 0
    • B
      borgotech
      last edited by Mar 3, 2017, 11:08 AM Mar 3, 2017, 10:56 AM

      I think the "easy" way" is with DNS Override … if u want to reach internal "custom" name hosts ex: host.mydomain.com and  to point to private ip's  like 192.168.xxx.xxx. I'm using this solution without configure BIND on my machine. There is many topics on forum about that.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by Mar 3, 2017, 11:06 AM

        Yeah you absolutely do not need to deal with BIND for such task. (And you clearly did not set up forwarding to be used as default for the rest of the zones, so nothing else will work.)

        1 Reply Last reply Reply Quote 0
        • P
          ploodoo
          last edited by Mar 6, 2017, 10:26 PM Mar 6, 2017, 8:07 PM

          I am in e learning phase. So I try to do things step by step to build the entire House of my solution. Thats the reason for trying firstly just gave names for internal IP's over BIND. When it works, i can do the next steps.

          @borgotech: I was wondering if I can do the DNS override thing (for learning too). So I add some hosts with the suitable IP's and it works. Thank you for this input! With your solution, how can I give this overrides to a client who is connectet over openvpn  to the pfsense?

          @doktornotor: To came back to the BIND thing. I already try to solve my problem with forwarding, but it doesn't solve my problem. At least not with my settings. Under Services; BIND DNS Server; Settings, I enable forwarding and add two DNS IP's from my provider.  not solved  :(

          1 Reply Last reply Reply Quote 0
          • P
            ploodoo
            last edited by Mar 15, 2017, 12:14 PM

            No more inputs?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received