Skip to content

Instantly share code, notes, and snippets.

@Jarred-Sumner
Created September 9, 2012 04:54
Show Gist options
  • Save Jarred-Sumner/3682657 to your computer and use it in GitHub Desktop.
Save Jarred-Sumner/3682657 to your computer and use it in GitHub Desktop.
$TTL 3600 ; One hour default TTL
; Replace li392-103. below with your machine's hostname
@ IN SOA li392-103. unused-email (
1 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
60 ; minimum (1 minute)
)
; Specify your server as the nameserver for your zone,
; substituting your machine's hostname.
@ IN NS li392-103.
; Specify the server which handles DNS updates for your zone,
; typically port 53 on the same server as above.
; If you're going to be running dnsextd (see below) then the port number is typically 5352
_dns-update._udp IN SRV 0 0 53 li392-103.
; Add PTR records telling clients that they can browse and register here
b._dns-sd._udp IN PTR @ ; "b" = browse domain
lb._dns-sd._udp IN PTR @ ; "lb" = legacy browse domain (include domain in empty-string browses)
r._dns-sd._udp IN PTR @ ; "r" = registration domainbonjour
; Add for applications to discover your domain as a potential place to browse
b._dns-sd._udp.dns.friendsend.co. 3600 IN PTR bonjour.dns.friendsend.co.
; Add if you want your domain to be chosen as the default
; browse domain in the Bonjour Preference Pane
db._dns-sd._udp.dns.friendsend.co. 3600 IN PTR bonjour.dns.friendsend.co.
; Add for this domain to show up in the list of potential registration domains
r._dns-sd._udp.dns.friendsend.co. 3600 IN PTR bonjour.dns.friendsend.co.
; Add if you want your domain to be chosen as the default
; registration domain in the Bonjour Preference Pane
dr._dns-sd._udp.dns.friendsend.co. 3600 IN PTR bonjour.dns.friendsend.co.
; Add the following line so that applications that do empty-string
; domain browses will browse your zone in addition to "local."
lb._dns-sd._udp.dns.friendsend.co. 3600 IN PTR bonjour.dns.friendsend.co.
[root@li392-103 named]# tail /var/log/messages.log
Sep 9 00:49:05 (none) named[32205]: automatic empty zone: 9.E.F.IP6.ARPA
Sep 9 00:49:05 (none) named[32205]: automatic empty zone: A.E.F.IP6.ARPA
Sep 9 00:49:05 (none) named[32205]: automatic empty zone: B.E.F.IP6.ARPA
Sep 9 00:49:05 (none) named[32205]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
Sep 9 00:49:05 (none) named[32205]: command channel listening on 127.0.0.1#953
Sep 9 00:49:05 (none) named[32205]: command channel listening on ::1#953
Sep 9 00:49:05 (none) named[32205]: managed-keys-zone: loaded serial 0
Sep 9 00:49:05 (none) named[32205]: zone dns.friendsend.co/IN: loaded serial 1
Sep 9 00:49:05 (none) named[32205]: all zones loaded
Sep 9 00:49:05 (none) named[32205]: running
options {
// tell named where to find zone files
directory "/var/named";
// these answer DNS queries outside of the bonjour.example.com. zone.
// insert address(es) of your normal DNS servers or caches here.
// On Mac OS X, you can find the address(es) via the "scutil --dns" command.
};
// entry for our new zone
zone "dns.friendsend.co." {
type master;
file "dns.friendsend.co";
allow-update { any; };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment