OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to connecto to windows DNS server
« previous next »
  • Print
Pages: [1]

Author Topic: How to connecto to windows DNS server  (Read 6412 times)

trinitech

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
How to connecto to windows DNS server
« on: December 05, 2017, 11:36:10 pm »
Hi Guys!

I just installed OPNsense for the first time and I have a question...
How do I need to setup the wan interface to work with a DHCP and DNS server hosted on a windows server?

So far, the WAN and the DHCP seem to be working ok..
From the OPNsense box, I can ping the DHCP server and the outside world (google.com)
From the LAN, I can ssh to remote server, ping the outside world with no problem but I CANNOT browse the internet..

If I manually set the desktop ethernet cart DNS to 8.8.8.8, then I can browse the internet..

So how do we set this up in OPNsense?
How do I tell my WAN that he nood to use the DNS server on the windows machine?
Logged

Ciprian

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: How to connecto to windows DNS server
« Reply #1 on: December 06, 2017, 11:48:14 am »
I started this response, wrote a few paragraphs, deleted everything and restarted with the following:

Your problem might be not related to the correct DNS server set for the FW, but to default DNSSEC settings on OPNsense. If you just installed OPNsense, then you have DNSSEC enabled (checked - Services: Unbound DNS: General) and Harden DNSSEC data enabled (checked - Services: Unbound DNS: Advanced).

Try and see if disabling (unchecking) Harden DNSSEC data works, and if not, try to disable DNSSEC completely.

Unfortunately, too many ISP's DNS servers, and enough free public DNS services, don't cope well with DNSSEC, especially if hardened.

If it solves your problem, you're welcome, if not, let's try to dig further, please come back with details.
Cheers.
Logged

weust

  • Hero Member
  • *****
  • Posts: 650
  • Karma: 57
    • View Profile
Re: How to connecto to windows DNS server
« Reply #2 on: December 06, 2017, 12:36:24 pm »
Isn't DNSSEC disabled by default?
Never enabled it myself, and I use my Domain Controller's DNS service for lookup from the OPNsense box.

From memory, you set the DNS setting somewhere in Settings\Administration?
Could be wrong, but it's not on the interface page.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

trinitech

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: How to connecto to windows DNS server
« Reply #3 on: December 06, 2017, 08:49:20 pm »
Hi Guys,

Thank you very much for your reply..
Spent the day trying to solve this issue and it turn out that I typed the wrong netmask when setting up the LAN interface :(

All good now..so far
Logged

weust

  • Hero Member
  • *****
  • Posts: 650
  • Karma: 57
    • View Profile
Re: How to connecto to windows DNS server
« Reply #4 on: December 06, 2017, 09:04:30 pm »
Derp haha
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Ciprian

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: How to connecto to windows DNS server
« Reply #5 on: December 07, 2017, 10:22:24 am »
Quote from: weust on December 06, 2017, 12:36:24 pm
Isn't DNSSEC disabled by default?
Never enabled it myself, and I use my Domain Controller's DNS service for lookup from the OPNsense box.

From memory, you set the DNS setting somewhere in Settings\Administration?
Could be wrong, but it's not on the interface page.

No, DNSSEC it's not disabled by default, quite contrary, by default it's enabled and hardened!

In "System: Settings: General" you only set the IP addresses of DNS forwarders (and have 2 DNS options as checkboxes below). Almost all other DNS settings are, by default (meaning, after fresh install) at "Services: Unbound DNS".
Logged

Ciprian

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 50
    • View Profile
Re: How to connecto to windows DNS server
« Reply #6 on: December 07, 2017, 10:24:14 am »
Quote from: trinitech on December 06, 2017, 08:49:20 pm
Hi Guys,

Thank you very much for your reply..
Spent the day trying to solve this issue and it turn out that I typed the wrong netmask when setting up the LAN interface :(

All good now..so far

 :) :) :)
You rock!  :D

Good luck, have fun!

Cheers!
Logged

weust

  • Hero Member
  • *****
  • Posts: 650
  • Karma: 57
    • View Profile
Re: How to connecto to windows DNS server
« Reply #7 on: December 07, 2017, 01:10:16 pm »
Quote from: hutiucip on December 07, 2017, 10:22:24 am
Quote from: weust on December 06, 2017, 12:36:24 pm
Isn't DNSSEC disabled by default?
Never enabled it myself, and I use my Domain Controller's DNS service for lookup from the OPNsense box.

From memory, you set the DNS setting somewhere in Settings\Administration?
Could be wrong, but it's not on the interface page.

No, DNSSEC it's not disabled by default, quite contrary, by default it's enabled and hardened!

In "System: Settings: General" you only set the IP addresses of DNS forwarders (and have 2 DNS options as checkboxes below). Almost all other DNS settings are, by default (meaning, after fresh install) at "Services: Unbound DNS".

I checked it on IRC and it seems it enabled by default since 17.7.
I'm still using my configuration I made in 2015, and import when setting up new or for testing.

Still need to look into it. Running Domain Controllers at home, and my OPNSENSE box uses those DNS server as forwarders (which in turn use Pi-hole).
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to connecto to windows DNS server
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2