View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005404 | Networks | OpenWRT | public | 2022-09-15 13:21 | 2023-11-25 06:56 |
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 |