Author Topic: Choosing right DNS server  (Read 1759 times)

brumela

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Choosing right DNS server
« on: October 27, 2012, 07:09:32 pm »
Hi,

This is my LAN setup:
  • 192.168.1.1 - pfsense 2.0.1 (gateway) acting as DNS forwarder and DHCP server for LAN clients
  • 192.168.1.2 - zentyal 3.0 (office PDC) also acting as DNS server for domain controller.

I ended up with two DNS (forwarders) servers. I still want to use 192.168.1.1 as only DNS server, but to join and use win clients with PDC, second one (192.168.1.2) has to be used.

I ended up with this solution. I setup 192.168.1.2 as DNS server on win clients. Then forward DNS requests on 192.168.1.2 to 192.168.1.1, and from 192.168.1.1 to Internet. Aldo this is working, I have problem resolving FQDN for local hosts:
This works
Code: [Select]
nslookup win1but this
Code: [Select]
nslookup win1.home.lan isn't.


I also tried another solution, to add dns record in primary (192.168.1.1) DNS server so that home.lan points to 192.168.1.2. Aldo dns resolution worked properly, win clients didn't found domain controller (join was not working).

Is there a better, nicer solution?

thanks
« Last Edit: October 27, 2012, 07:11:09 pm by brumela »

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Choosing right DNS server
« Reply #1 on: November 01, 2012, 03:09:31 am »
Primary dns set to domain controller secondary set to gateway.  On the domain controller put in a forwarder to the gateway.  This should give you what you are after.

ichat

  • Zen Hero
  • *****
  • Posts: 795
  • Karma: +28/-16
  • RTFM!
    • View Profile
Re: Choosing right DNS server
« Reply #2 on: November 01, 2012, 02:39:46 pm »
given that,  i would suggest to use zentyal as a dhcp / dns  / pdc   and  drop that  from your pfsence and only use it as a firewall  this will solve issues with having to change your dhcp  information everythime you make changes to your zentyal box...  or if you even install ltsp. for example.
All tips hints and advices are based on my personal experience.
As I try my best to be as accurate as possible, following my advice is always at your own risk,
I claim absolutely NO responsibility in any way!

brumela

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Choosing right DNS server
« Reply #3 on: November 06, 2012, 11:03:30 pm »
Thanks