View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005404 | Networks | OpenWRT | public | 2022-09-15 13:21 | 2025-01-15 11:13 |
Reporter | DigitalMy | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Summary | 0005404: Set up bind DNS server in linux and clone zone | ||||
Description | Copy zone(s) from Windows DNS server to OpenWRT linux OS "named" server | ||||
Tags | No tags attached. | ||||
|
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 |
|
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 |
|
Set /etc/bind/named.conf for slave zone transfer from Windows master DNS: server 10.0.0.1 { send-cookie no; edns no; }; |
|
Set reverse zone for name server recognition (by nslookup) .in-addr.arpa with external public IP |
|
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 |
|
No need to set /etc/init.d/named OPTIONS="-4" Set /etc/bind/named.conf options { listen-on-v6 { none; }; minimal-responses yes; }; |
|
After update bind fails to start add external DNS server to /etc/resolv.conf |
|
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 |
|
Failed to start, errors: general: error: managed-keys.bind.jnl: open: permission denied systemctl reset-failed named.service systemctl daemon-reload mcedit /etc/systemd/system/named.service journalctl -u named.service -r ld.so: object 'libesets_pac.so' from /etc/ld.so.preload cannot be preloaded sudo chmod +x /path/to/execfile open: /etc/bind/named.conf: permission denied mcedit /etc/apparmor.d/local/usr.sbin.named /var/named/run-root/** rwm systemctl reload apparmor sudo chmod 777 /etc/bind/named.conf addgroup named chown root:named /etc/bind/named.conf chown root:named /etc/bind/named.conf.options chown root:named /etc/bind/named.conf.my-zones chown root:named /etc/bind/named.conf.default-zones chown root:named /etc/bind/logs.conf chmod 777 /var/cache/bind chmod 777 /etc/bind/named.conf.options chmod 777 /etc/bind/named.conf.my-zones chmod 777 /etc/bind/named.conf.default-zones chmod 777 /etc/bind/logs.conf chmod -R 777 /var/log/bind chmod -R 777 /etc/bind chmod -R 777 /var/cache/bind chown root:named /var/log/bind chown root:named /var/cache/bind |