Configure BIND as Nameserver for internal IP
-
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.comServer 1 IP: 192.168.1.101
Server 2 IP: 192.168.1.102I add two records to BIND:
server1, Type A, IP 192.168.1.101
server2, Type A, IP 192.168.1.102When 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.
-
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.
-
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.)
-
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 :(
-
No more inputs?