View Issue Details

IDProjectCategoryView StatusLast Update
0005404NetworksOpenWRTpublic2023-11-25 06:56
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0005404: Set up bind DNS server in linux and clone zone
DescriptionCopy zone(s) from Windows DNS server to OpenWRT linux OS "named" server
TagsNo tags attached.

Activities

DigitalMy

2022-09-15 13:29

administrator   ~0008178

Last edited: 2022-09-17 01:28

View 2 revisions

Use bind (named)
opkg install bind-server
opkg install bind-tools

set /cgi-bin/luci/admin/network/dhcp DNS server
port=0

/etc/init.d/named enable
/etc/init.d/named start
rndc reload

slave zone file should be set in folder /tmp/bind
master zone file put to /etc/bind

DigitalMy

2022-09-15 15:19

administrator   ~0008179

Last edited: 2022-09-17 01:31

View 3 revisions

edit /etc/dnsmasq.conf

port=0
dhcp-option=6,10.0.0.1

set local router as DNS server in DHCP leases of dnsmasq of OpenWRT

DigitalMy

2022-09-17 01:30

administrator   ~0008180

Set /etc/bind/named.conf

for slave zone transfer from Windows master DNS:

server 10.0.0.1 {
    send-cookie no;
    edns no;
};

DigitalMy

2022-09-17 01:35

administrator   ~0008181

Set reverse zone for name server recognition (by nslookup)
 .in-addr.arpa
with external public IP

DigitalMy

2022-09-18 00:11

administrator   ~0008182

Last edited: 2022-09-18 11:31

View 3 revisions

For logs add USB drive
opkg update &&
opkg install block-mount
opkg install kmod-usb-storage
opkg install kmod-usb2
opkg install kmod-fs-vfat
block info
block detect > /etc/config/fstab
change line: option enabled '0' to option enabled '1' of the config 'mount' section
block mount
df -hT

DigitalMy

2022-09-18 11:32

administrator   ~0008183

Last edited: 2022-09-18 13:36

View 3 revisions

No need to set /etc/init.d/named
OPTIONS="-4"

Set /etc/bind/named.conf
options {
        listen-on-v6 { none; };
       minimal-responses yes;
};

DigitalMy

2022-11-14 00:36

administrator   ~0008199

After update bind fails to start
add external DNS server to /etc/resolv.conf

DigitalMy

2023-08-03 13:17

administrator   ~0010217

Last edited: 2023-11-25 06:56

View 6 revisions

Debian:
apt install bind9 bind9-dnsutils bind9-host bind9-utils

mcedit /etc/bind/logs.conf
Add "file" path for each log /var/log/bind/
in file /etc/bind/logs.conf set each section
severity error;
... size 1m;


mcedit /etc/default/named
RESOLVCONF=no
OPTIONS="-u bind -4"

mcedit /etc/apparmor.d/usr.sbin.named
/var/log/bind/** rw,
/var/log/bind/ rw,

service apparmor restart
service bind9 status
systemctl restart bind9