OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of nathamus »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - nathamus

Pages: [1]
1
General Discussion / Re: How to create a LAN side wildcard DNS entry / override with Unbound DNS
« on: August 30, 2017, 03:46:48 pm »
Update: I switched to "Dnsmasq DNS" and it appears to satisfy my requirements.

Thanks to the pfSense doc entry here:
https://doc.pfsense.org/index.php/Wildcard_Records_in_DNS_Forwarder/Resolver

I created an entry in the Server / Dnsmasq DNS -> Advanced field:
address=/cdsw.mydomain.local/10.0.0.200

In addition I re-created all my Host Overrides entries from the Unbound DNS Overrides section to the Dnsmasq DNS Host Overrides.

2
General Discussion / How to create a LAN side wildcard DNS entry / override with Unbound DNS
« on: August 30, 2017, 01:47:09 pm »
Hello!

I need some advise on how to configure a wildcard DNS entry in the Unbound DNS.
Setup:
- OpnSense 17.7
- WAN with fixed public IP
- registered domain, let's call it mydomain.com
- Internal LAN, e.g. 10.0.0.0/24

On the LAN side I have several machines that use OpnSense as their only DNS server.
Using the Unbound DNS "Overrides" I set the DNS names for the local LAN, let's call it
"mydomain.local", thus I have entries like:
db.mydomain.local -> 10.0.0.100
dc.mydomain.local -> 10.0.0.101
cdsw.mydomain.local -> 10.0.0.200
cdsw1.mydomain.local -> 10.0.0.201 etc.

Now I need is a wildcard DNS entry that points towards one of the machines:
*.cdsw.mydomain.local -> 10.0.0.200
This is required for the service running on that machine.

I tried to create that entry in the GUI, but it did not work.
Under Services / Unbound DNS / Overrides -> create new entry:
Host: *
Domain: cdsw.mydomain.local
=> Error: The hostname can only contain the characters A-Z, 0-9 and '-'.
... and of course I get the same when I try ""*.cdsw" as host and "mydomain.local" as Domain.


Can this be done using the console?
What (file) do I need to edit and how does the syntax look like?

Is this type of change save when it comes to updates of OpnSense or may the manual changes get overridden?
Will it be include in a config backup?

Pages: [1]
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