Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
OS-BiND create wrong master zone files
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: OS-BiND create wrong master zone files (Read 3900 times)
Carsten99
Newbie
Posts: 14
Karma: 0
OS-BiND create wrong master zone files
«
on:
February 17, 2022, 06:40:49 pm »
Hello,
I am new with opnsense since a few days. I am using OPNsense 22.1.1_1-amd64.
I try to configure my network with this great software.
I tried to configure the os-bind plugin without unbound dns.
I create a slave zone from Windows DC which works well.
But my master zones does not work. The Zone can not be loaded:
I created a zone called work.local
17-Feb-2022 18:35:58.413 zoneload: error: zone work.local/IN: not loaded due to errors.
17-Feb-2022 18:35:58.413 zoneload: error: zone work.local/IN: has no NS records
Reason being:
The file work.local.db from system:
$TTL 86400
@ IN SOA localhost. root.fw2. ( 2202171810 21600 3600 3542400 3600 )
fw1 A 192.168.17.11
sep A 192.168.17.33
And this created file is not correct.
The correct file would look like:
$TTL 86400
@ IN SOA localhost. root.fw2. ( 2202171810 21600 3600 3542400 3600 )
IN NS localhost.
fw1 IN A 192.168.17.11
sep IN A 192.168.17.33
Can this be modified in Filesystem as workaround?
Can this be solved? Or did I something wrong?
Thanks for your feedback
best regards
Carsten
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: OS-BiND create wrong master zone files
«
Reply #1 on:
February 17, 2022, 07:15:15 pm »
You need to create a NS record pointing to bind IP
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #2 on:
February 17, 2022, 07:28:46 pm »
Hi,
thanks but this does not change anything.
$TTL 86400
@ IN SOA localhost. root.fw2. ( 2202171924 21600 3600 3542400 3600
)
fw1 A 192.168.17.11
fw1 NS 192.168.17.11
sep A 192.168.17.33
FW1 is the Nameserver itself.
any further hints, or did i something wrong?
regards
carsten
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: OS-BiND create wrong master zone files
«
Reply #3 on:
February 18, 2022, 07:26:06 am »
Leave fw1 field in NS record empty
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #4 on:
February 18, 2022, 10:40:39 am »
Hi,
got i running.
Set the Type for NS to localhost.
Now my config look like:
$TTL 86400
@ IN SOA localhost. root.fw2. ( 2202181037 21600 3600 3542400 3600 )
NS localhost.
fw1 A 192.168.17.11
sep A 192.168.17.33
thanks
regards
carsten
Logged
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #5 on:
February 18, 2022, 01:57:51 pm »
Hello,
I got the Master Zone running. Perfekt. Thanks
Now i faced the problem, that I does not find any possibility to define and maintain reverse zone.
I have different IP Zones and I want to have IP to Name resolution.
How the dns reverse zones can be defined?
thanks
regards
carsten
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: OS-BiND create wrong master zone files
«
Reply #6 on:
February 18, 2022, 05:16:59 pm »
like any other zone with the correct labeling I'd guess.
Just have a look at bind docs how a reverse zone looks like
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #7 on:
February 19, 2022, 01:14:25 pm »
Hi,
thanks.
But I have to manual create and maintain the file itself?
By the GUI it will not be created and maintained (filled with new Hosts)?
If I create a new host via GUI and I have to go to the ssh shell and do it manual for the reverse zone?
Thanks
regards
carsten
Logged
5SpeedFun
Full Member
Posts: 119
Karma: 7
Re: OS-BiND create wrong master zone files
«
Reply #8 on:
February 20, 2022, 12:34:43 am »
If this is all for internal hosts, you might want to use unbound. It has options for registering dhcpv4 registrations in DNS, and IIRC it does reverse as well!
Say you have a server with a static ip that is in your vlan that has dhcp. You can leave it static, and give it a reservation and unbound should take care of forward/reverse as long as you check the box in unbound to grab info from DHCP.
Bind is a lot more complicated. I use bind for publicly facing servers/zones, and all my internal stuff is unbound. It works fairly well.
Logged
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #9 on:
February 21, 2022, 09:31:13 am »
Hi,
thanks.
I will try unbound out.
Otherwise I will deinstall the plugin and install bind itself.
I saw it is possible
thanks
regards
carsten
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: OS-BiND create wrong master zone files
«
Reply #10 on:
February 21, 2022, 09:35:36 am »
You can remove the plugin and do the rest via CLI-only:
pkg install bind9
But, honestly, setting up an RLZ is the same as a normal zone, you only need to know how to use it in bind.
Name of the zone:
zone "64.24.81.in-addr.arpa"
content:
the NS record and PTR records for reverse.
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #11 on:
February 21, 2022, 11:58:32 am »
Hi,
and the "GUI" will fill the NS and PTR in the RLZ File?
regards
carsten
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: OS-BiND create wrong master zone files
«
Reply #12 on:
February 21, 2022, 12:16:29 pm »
No. You fill the NS and PTR records in the UI.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #13 on:
February 21, 2022, 03:04:51 pm »
Sorry to be silly. I was lost somewhere.
I understand.
I create new Zone as reverse zone, it is only a Name which has to follow the rule.
And inside I put a ns and PTR.
Thanks, i will check it out tomorrow.
regards
carsten
Logged
Carsten99
Newbie
Posts: 14
Karma: 0
Re: OS-BiND create wrong master zone files
«
Reply #14 on:
February 22, 2022, 02:28:41 pm »
Hi,
thanks.
It works.
Regards
Carsten
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
OS-BiND create wrong master zone files