Created
September 8, 2011 05:10
-
-
Save hamstar/1202674 to your computer and use it in GitHub Desktop.
Sample working DNS file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Do any local configuration here | |
| // | |
| // Consider adding the 1918 zones here, if they are not used in your | |
| // organization | |
| //include "/etc/bind/zones.rfc1918"; | |
| // Reverse DNS | |
| zone "0.0.10.in-addr.arpa" { | |
| type master; | |
| file "/etc/bind/zones/rev.0.0.10.in-addr.arpa"; | |
| }; | |
| // Boobs dot com | |
| zone "boobs.com" { | |
| type master; | |
| file "/var/lib/bind/boobs.com.hosts"; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ttl 38400 | |
| boobs.com. IN SOA ns1.boobs.com admin.boobs.com. ( | |
| 1315456718 | |
| 10800 | |
| 3600 | |
| 604800 | |
| 38400 ) | |
| IN NS ns1.boobs.com. | |
| boobs.com. IN A 10.0.0.5 | |
| ns1 IN A 10.0.0.5 | |
| wlan IN A 10.0.0.1 | |
| gw IN A 10.0.0.5 | |
| www CNAME boobs.com. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $TTL 3D | |
| @ IN SOA ns.boobs.com. admin.boobs.com. ( | |
| 2007062001 | |
| 28800 | |
| 604800 | |
| 604800 | |
| 86400 | |
| ) | |
| IN NS ns.boobs.com. | |
| 5 IN PTR gw.boobs.com. | |
| 1 IN PTR wlan.boobs.com. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [hamstar@behemoth:/] ?? ping wlan.boobs.com -c 1 | |
| PING wlan.boobs.com (10.0.0.1) 56(84) bytes of data. | |
| 64 bytes from wlan.localdomain (10.0.0.1): icmp_req=1 ttl=255 time=0.573 ms | |
| [hamstar@behemoth:/] ?? ping ns1.boobs.com -c 1 | |
| PING ns1.boobs.com (10.0.0.5) 56(84) bytes of data. | |
| 64 bytes from server.localdomain (10.0.0.5): icmp_req=1 ttl=64 time=0.034 ms | |
| [hamstar@behemoth:/] ?? ping gw.boobs.com -c 1 | |
| PING gw.boobs.com (10.0.0.5) 56(84) bytes of data. | |
| 64 bytes from server.localdomain (10.0.0.5): icmp_req=1 ttl=64 time=0.031 ms | |
| [hamstar@behemoth:/] ?? dig boobs.com | |
| ; <<>> DiG 9.7.3 <<>> boobs.com | |
| ;; global options: +cmd | |
| ;; Got answer: | |
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34906 | |
| ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 | |
| ;; QUESTION SECTION: | |
| ;boobs.com. IN A | |
| ;; AUTHORITY SECTION: | |
| boobs.com. 38400 IN SOA ns1.boobs.com.boobs.com. admin.boobs.com. 1315456718 10800 3600 604800 38400 | |
| ;; Query time: 0 msec | |
| ;; SERVER: 10.0.0.5#53(10.0.0.5) | |
| ;; WHEN: Thu Sep 8 17:07:26 2011 | |
| ;; MSG SIZE rcvd: 99 | |
| [hamstar@behemoth:/] ?? nslookup wlan.boobs.com | |
| Server: 10.0.0.5 | |
| Address: 10.0.0.5#53 | |
| Name: wlan.boobs.com | |
| Address: 10.0.0.1 | |
| [hamstar@behemoth:/] ?? nslookup gw.boobs.com | |
| Server: 10.0.0.5 | |
| Address: 10.0.0.5#53 | |
| Name: gw.boobs.com | |
| Address: 10.0.0.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment