Unbound - Persistent Configuration

mockingbird

Verified User
Joined
Feb 6, 2023
Messages
41
Should the Unbound configuration be changed here:
/etc/unbound/unbound.conf.d/prefetch.conf

Or should one create the following directory?:
/usr/local/directadmin/custombuild/custom/unbound

Thank you
 
Older post but I see nobody answered that.
How is that unbound working, so you need to configure things I guess, not working out of the box.

However, I don't find any examples for Directadmin.

Does it run besides bind, any special things to take care of or keep in mind, especially with slave nameservers like Directslave and things like rSpamd and RBL's to prevent running into limits?
 
I know that they/it can see whatever they want, but less is more and I'm running it @home on my router.

My isp can also tap whatever traffic comes through and as long as the scary stuff is over a trusted vpn
and dns queries are not done through their or google/cloudflare/etc.'s servers I'm okay with it. Just that
small extra layer of protection. And dnssec of course which ziggo here is not able to understand and offer :cool:
 
Last edited:
And it is working fine out of the box.
That would be great, but searching on the DA forums let me find some post who said it was conflicting with bind on port 53 and that person had to configure Unbound to run on port 5353. Is that correct?

Also I've found that probably rSpamd needs some different configuration then.
Code:
# /etc/unbound/unbound.conf.d/rspamd.conf
server:    interface: 127.0.0.1
port: 53
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
prefetch: yes

I probably ned to change that port here too, and at this moment I use:
Code:
dns {
    nameserver = "master-slave:127.0.0.1,185.xxx.xxx.xxx";
}
That options.inc can be removed then and doesn't cause RBL limits anymore?
 
That would be great, but searching on the DA forums let me find some post who said it was conflicting with bind on port 53 and that person had to configure Unbound to run on port 5353. Is that correct?

There's no conflict if you install Unbound through DirectAdmin/CustomBuild:

Code:
[root@poralix custombuild]# cat /etc/resolv.conf
nameserver 127.0.0.253
options edns0 trust-ad
[root@poralix custombuild]#

Also I've found that probably rSpamd needs some different configuration then.

I don't have either /etc/unbound/unbound.conf.d/rspamd.conf or /etc/unbound/unbound.conf.d/ on my server with unbound and rSpamd.

p.s. If you're looking for reasons why it could break a server, I'm sure you'll find them. If you're looking for reasons why it's good for a server, you'll find those too. So, what are you trying to prove?
 
So, what are you trying to prove?
I'm not trying to prove anything, just trying to prevent known issues before installing it on the live server since I don't have a test server at the moment.
And since I found that post about conflicting ports and port 5353 just asking if that was a thing. And also if some rspamd config change was required.
So just asking questions to be sure based on what I've found on my searching.

Seems I don't need to worry so I will try and install later this evening.

Thank you!

For future references for myself and others using search option.
Code:
da build set unbound yes
da build set unbound_as_default_resolver yes
da build unbound
 
The only include directive I can find in the Unbound config on CentOS-like servers is:
Code:
include: /etc/unbound/conf.d/*.conf

Mentions of /etc/unbound/unbound.conf.d/rspamd.conf only show up in relation to ISPmanager, so there's no need to worry about it.

My pleasure, Richard
 
Back
Top