Page 1 of 1

DNS Recursion Issue

Posted: 09 Aug 2020 14:51
by fakhar.khan
Hello,

I am getting a problem after installing EFA v4 three times. At MailWatch no message at Recent Message/Quarantine wasn't shown. I try to dig out the problem with old post on this forum but in vain.

I read shawniverson post which says enable DNS Recursion. I try to do it but if I Disabled it then it will remain disable and vise versa. After the first fresh installation of EFA, I Disabled it and it will remain disabled. Then I try to Enabled it but the results are the same. After third attempt, I try again and got the same four liner error

On the third attempt, when changing DNS Recursion to Disable at the Configuration menu. It accepts my local DNS but afterward gives this four liner error. (Just to inform, this message come on every time).

sed: -e expression #1, char 38: unknown command: `.'
sed: -e expression #1, char 41: unknown command: `.'
sed: -e expression #1, char 47: unknown command: `.'
sed: -e expression #1, char 48: unknown command: `.'
All done

and last time also give

/var/eFa/lib/eFa-Configure/func_ipsettings: line 133: RECURSIVEDNS: command not found
Recursion will be DISABLED. Please set your DNS entries.

if I provide DNS the above mention four-line error occurred.

I struggle a lot by doing RND at this forum but with no success. So looking forward for your help.

Re: DNS Recursion Issue

Posted: 10 Aug 2020 00:41
by shawniverson

Re: DNS Recursion Issue

Posted: 10 Aug 2020 01:20
by shawniverson
Fix going out with next update.

Let me know if this helps.

Re: DNS Recursion Issue

Posted: 11 Aug 2020 03:38
by fakhar.khan
Shawn, nDNS is now enabling/disabling but four line error is still there.

Re: DNS Recursion Issue

Posted: 11 Aug 2020 05:56
by fakhar.khan
Job for unbound.service failed because the control process exited with error code. See "systemctl status unbound.service" and journalctl -xc" for details.

After giving a secondary IP in the configuration menu, it gives the above error. My unbound services are working perfectly.

I am also stuck that my Mailwatch don't show any message as well even DNS recursion is enabled.

Re: DNS Recursion Issue

Posted: 11 Aug 2020 09:57
by shawniverson
I think you may be missing some fields in your /etc/eFa/eFa-Config

I'll try to figure out based on your errors which ones those are.

Re: DNS Recursion Issue

Posted: 11 Aug 2020 10:51
by shawniverson
Correction, I can't reproduce with missing fields in that file....

Do me a favor...look in /etc/unbound/conf.d/ remove any files present there please and rerun.

Re: DNS Recursion Issue

Posted: 11 Aug 2020 13:58
by fakhar.khan
Thank you very much.

There was nothing missing on /etc/eFa/eFa-Config

but removing /etc/unbound/conf.d/forwarders.conf make my day. It contains these appended contents

forward-zone:
name: "."
forward-addr:

Re: DNS Recursion Issue

Posted: 11 Aug 2020 17:21
by fakhar.khan
I would like to inform that when I rerun and enable DNS resursion mode. After checking
/etc/unbound/conf.d/forwarders.conf

its content are

forward-zone:
name: "."
forward-addr: (x.x.x.x) x.x.x.x is my DNS address.