diff --git a/home-router-config.md b/home-router-config.md index bff5e000a7e9ff3b9250ba2ea6019fabed8563ef..1baec0f978187706d046e04a145c33dfa4ea01e1 100644 --- a/home-router-config.md +++ b/home-router-config.md @@ -5,6 +5,7 @@ OpenWRT /etc/config/firewall, user-defined section only ``` +[other config ...] config include option path '/etc/firewall.user' @@ -94,49 +95,42 @@ config redirect ``` -## DHCP static leases +## DHCP static leases and DNS DHCP pool: 10.100.100.120 - 10.100.100.220, router 10.100.100.1 ``` -RECOLICHMS -2C:56:DC:08:42:73 -10.100.100.101 -none -none -none -RECOLICPC -24:4B:FE:8D:BF:84 -10.100.100.34 -none -none -none -RECOLICHMS.wifi -DC:85:DE:F8:8E:71 -10.100.100.104 -none -none -none -LadlodRouter -7C:B5:40:74:FD:CE -10.100.100.122 -none -none -none -``` - -## DNS - -router /etc/hosts - -``` -10.100.100.101 hms.recolic -10.100.100.101 nfs.recolic -10.100.100.34 pc.recolic -10.100.100.1 openwrt.recolic - -# Used by DNSSD printer broadcast -10.100.100.101 RECOLICHMS +[other config ...] + +config host + option name 'RECOLICPC' + option dns '1' + option mac '24:4B:FE:8D:BF:84' + option ip '10.100.100.34' + +config host + option name 'RECOLICHMS' + option dns '1' + option mac '2C:56:DC:08:42:73' + option ip '10.100.100.101' + +config host + option name 'LadlodRouter' + option dns '1' + option mac '7C:B5:40:74:FD:CE' + option ip '10.100.100.122' + +config domain + option name 'pc.recolic' + option ip '10.100.100.34' + +config domain + option name 'hms.recolic' + option ip '10.100.100.101' + +config domain + option name 'RECOLICHMS' + option ip '10.100.100.101' ```