This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
bdnog11:netsec:bind-reverse [2020/01/14 11:36] Muhammad Moinur Rahman |
bdnog11:netsec:bind-reverse [2020/01/14 11:40] (current) Muhammad Moinur Rahman |
||
---|---|---|---|
Line 67: | Line 67: | ||
- In your customer’s name server, (`/etc/bind/master`) create the /26 subdomain. Update your customer’s `named.conf.local` to load this /26 subdomain thus acting as primary for this /26 subdomain. | - In your customer’s name server, (`/etc/bind/master`) create the /26 subdomain. Update your customer’s `named.conf.local` to load this /26 subdomain thus acting as primary for this /26 subdomain. | ||
- Updating customer’s named.conf.local to reflect the /26 subdomain.\\ <code> | - Updating customer’s named.conf.local to reflect the /26 subdomain.\\ <code> | ||
- | //customer’s name server named.conf | + | //customer’s name server named.conf |
- | zone "1XX.168.192.in-addr.arpa." { | + | zone "1XX.168.192.in-addr.arpa." { |
- | type slave; | + | type slave; |
- | file "db.192.168.1XX.bak"; | + | file "db.192.168.1XX.bak"; |
- | allow-transfer { none; }; | + | allow-transfer { none; }; |
- | masters { 192.168.1XX.1; }; | + | masters { 192.168.1XX.1; }; |
- | }; | + | }; |
- | zone "64-127.1XX.168.192.in-addr.arpa." { | + | zone "64-127.1XX.168.192.in-addr.arpa." { |
- | type master; | + | type master; |
- | file "db.192.168.1XX.64"; | + | file "db.192.168.1XX.64"; |
- | };</code> | + | };</code> |
- Create the /26 zone (`db.192.168.1XX.64`) file in the customer name server\\ <code> | - Create the /26 zone (`db.192.168.1XX.64`) file in the customer name server\\ <code> | ||
- | $ORIGIN 64-127.1XX.168.192.in-addr.arpa. | + | $ORIGIN 64-127.1XX.168.192.in-addr.arpa. |
- | @ SOA ns.groupYY.net. root.groupYY.net. ( | + | @ SOA ns.groupYY.net. root.groupYY.net. ( |
- | 20121026 | + | 20121026 |
- | 1h | + | 1h |
- | 30m | + | 30m |
- | 1w | + | 1w |
- | 24h | + | 24h |
- | ) | + | ) |
- | NS ns.groupYY.net. | + | @ NS ns.groupYY.net. |
- | 65 PTR www.groupYY.net. | + | 65 PTR www.groupYY.net. |
- | 66 PTR ftp.groupYY.net. | + | 66 PTR ftp.groupYY.net. |
- | 67 PTR mail.groupYY.net.</code> | + | 67 PTR mail.groupYY.net.</code> |
- Use dig to check if delegation works. This command will use dig to look for a PTR record.\\ <code> | - Use dig to check if delegation works. This command will use dig to look for a PTR record.\\ <code> | ||
- | dig @192.168.30.XX -x 192.168.1XX.66</code>\\ This command uses dig to look for an A record.\\ <code>dig @server hostname.domain-name.net</code> | + | dig @192.168.30.XX -x 192.168.1XX.66</code>\\ This command uses dig to look for an A record.\\ <code>dig @server hostname.domain-name.net</code> |