Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Additional DNS Options #511

Closed
majorsl opened this issue Dec 7, 2015 · 8 comments
Closed

Feature Request: Additional DNS Options #511

majorsl opened this issue Dec 7, 2015 · 8 comments
Assignees
Labels
feature Adding new functionality
Milestone

Comments

@majorsl
Copy link

majorsl commented Dec 7, 2015

I'm interested in having OPNsense take over my DNS duties as it seems to do everything I need for my relatively simple LAN.

I need one host to have an MX record, but I can't seem to find an option to add it. Maybe a simple checkbox "[x] Add an MX Record for this host" could be done at some point?

Alternately, I love LOVE how you devs did the "Additional BOOTP/DHCP Options" section on the current release (yay, I can finally have option 252) - something like this for advanced DNS would be pretty sweet.

@fichtner
Copy link
Member

fichtner commented Dec 7, 2015

Are you talking forwarder or resolver?

Forwarder (dnsmasq) has advanced options for the command line, see --mx-host in http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Resolver (unbound) has advanced options for the config file, see MX in https://forum.teksyndicate.com/t/need-some-help-with-unbound-dns/68740 et al.

We didn't change DHCP options there... Not sure what you mean. :)

@fichtner fichtner added the feature Adding new functionality label Dec 7, 2015
@fichtner fichtner added this to the 16.1 milestone Dec 7, 2015
@fichtner fichtner added the help wanted Contributor missing / timeout label Dec 7, 2015
@majorsl majorsl changed the title Feature Request: Addition DNS Options Feature Request: Additional DNS Options Dec 7, 2015
@majorsl
Copy link
Author

majorsl commented Dec 7, 2015

Oh, okay, so in Resolver I could just directly add:

local data: "example.com. IN MX 10 mail.example.com."

Sorry, I'm accustomed to hand editing BIND. It appears the TTL is globally set in unbound, yes?

Oh, I was complimenting you all on how well the Additional DHCP options are organized. I was looking for something similar to that for DNS which is why I overlooked the raw text entry box, but that works.

@fichtner
Copy link
Member

fichtner commented Dec 8, 2015

Yes, it's cache-min-ttl. No worries. :)

Maybe something could be added to the host overrides. It's interesting that it has never been there in the first place.

@8191
Copy link
Member

8191 commented Dec 8, 2015

Does not completely fit in here, but what about moving the (very?) uncommonly used feature "Listen Port" from the GUI to the advanced options? I cannot imagine any use-case, where someone would like to configure unbound to a different port than 53...

@fichtner
Copy link
Member

fichtner commented Dec 8, 2015

Agreed, PR welcome. :)

@8191
Copy link
Member

8191 commented Dec 8, 2015

@fichtner Regarding the host override: Currently there is a unique key on the host value of each domain override. So it is not possible to add e.g. host1.domain1 and host1.domain2, because both host override entries use the name host portion of the host override.

If we are now thinking of extending the host override feature by oder RRs than A and AAAA, we should maybe think about this restriction: does it make sense?

I personally cannot see a reason why I should not be able to override the same host portion in two different domains with two different IPs.

The regarding code resists in src/etc/inc/unbound.inc:520.

I just saw that the host part is optional. Any clue what was the pfSense's idea behind the host/domain separation then?

@fichtner fichtner removed the help wanted Contributor missing / timeout label Jan 9, 2016
@fichtner
Copy link
Member

fichtner commented Jan 9, 2016

thanks for this @8191 :)

@fichtner fichtner closed this as completed Jan 9, 2016
@sjjh
Copy link

sjjh commented May 6, 2023

Forwarder (dnsmasq) has advanced options for the command line, see --mx-host in http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

@fichtner I cannot find an option in the OPNsense GUI to specify any command line option for a host override in dnsmasq (OPNsense 23.1). Am I overlooking something, or what is the preferred way to add an MX entry (call dnsmasq via ssh with command line option, editing dnsmasq config file via ssh, ...)?
Sorry for the naive question!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding new functionality
Development

No branches or pull requests

4 participants