BIND on OS X 10.7

jgrim

Wordpress Guru
Oct 4, 2009
281
12
0
Ohio
jgwebdevelopment.com
Has anyone successfully got BIND working on OS X 10.7?
It's running and claims to have loaded my zone file; however, it's not doing the lookup correctly?

Using it for wildcard DNS.
 


Have you looked at the logs to see if there are any errors? Are you sure it's running? Is this Lion Server or client?
 
It's Lion client.

Here is my zone file:
realitydirect.local. 7200 IN SOA realitydirect.local. root.realitydirect.local. (
20100601 ; Serial (a date in this case)
15 ; Refresh every 15 minutes
3600 ; Retry every hour
3000000 ; Expire after a month+
86400 ) ; Minimum ttl of 1 day
IN NS realitydirect.local.
IN A 127.0.0.1
*.realitydirect.local. IN A 127.0.0.1

named.conf
//
// Default controls
//
key "rndc-key" {
algorithm hmac-md5;
secret "1teEGJpADqlQtHBjQZqvuQ==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "realitydirect.local" IN {
type master;
file "realitydirect.zone";
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

logging {
category default {
_default_log;
};

channel _default_log {
file "/Library/Logs/named.log";
severity info;
print-time yes;
};
};
rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "1teEGJpADqlQtHBjQZqvuQ==";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
named.log
30-Jan-2012 19:45:26.037 zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
30-Jan-2012 19:45:26.038 realitydirect.zone:7: using RFC1035 TTL semantics
30-Jan-2012 19:45:26.038 zone realitydirect.local/IN: loaded serial 20100601
30-Jan-2012 19:45:26.038 zone localhost/IN: loaded serial 42
30-Jan-2012 19:45:26.038 managed-keys-zone ./IN: loaded serial 0
30-Jan-2012 19:45:26.038 running
30-Jan-2012 19:45:39.114 error (host unreachable) resolving 'ns1.p35.dynect.net/A/IN': 2001:503:231d::2:30#53
30-Jan-2012 19:45:39.139 error (host unreachable) resolving 'ns4.p35.dynect.net/A/IN': 2001:500:94::100#53
30-Jan-2012 19:45:39.139 error (host unreachable) resolving 'ns4.p35.dynect.net/A/IN': 2001:500:90::100#53
30-Jan-2012 19:45:39.198 error (host unreachable) resolving 'api-ssl.bitly.com/A/IN': 2001:500:94:1::35#53
 
Snow Leopard > Windows XP > Windows 7 > Windows 98se > Windows Vista > Windows ME > Lion

Apparently. :)
 
Your log files, not your config files. What does it say in the log?

I think they're in /Library/Logs/named.log

Personally I love Lion, haven't had a single issue with it and the extra swipe gestures for the trackpad make my workflow so much faster.
 
The log file was on the bottom. Here it is again:
Code:
01-Feb-2012 20:07:09.891 received SIGHUP signal to reload zones
01-Feb-2012 20:07:09.891 loading configuration from '/private/etc/named.conf'
01-Feb-2012 20:07:09.892 reading built-in trusted keys from file '/private/etc/bind.keys'
01-Feb-2012 20:07:09.892 using default UDP/IPv4 port range: [49152, 65535]
01-Feb-2012 20:07:09.892 using default UDP/IPv6 port range: [49152, 65535]
01-Feb-2012 20:07:09.946 reloading configuration succeeded
01-Feb-2012 20:07:09.947 reloading zones succeeded
01-Feb-2012 20:07:11.804 received SIGHUP signal to reload zones
01-Feb-2012 20:07:11.804 loading configuration from '/private/etc/named.conf'
01-Feb-2012 20:07:11.805 reading built-in trusted keys from file '/private/etc/bind.keys'
01-Feb-2012 20:07:11.805 using default UDP/IPv4 port range: [49152, 65535]
01-Feb-2012 20:07:11.805 using default UDP/IPv6 port range: [49152, 65535]
01-Feb-2012 20:07:11.807 reloading configuration succeeded
01-Feb-2012 20:07:11.809 reloading zones succeeded
01-Feb-2012 20:07:13.330 received SIGHUP signal to reload zones
01-Feb-2012 20:07:13.331 loading configuration from '/private/etc/named.conf'
01-Feb-2012 20:07:13.331 reading built-in trusted keys from file '/private/etc/bind.keys'
01-Feb-2012 20:07:13.331 using default UDP/IPv4 port range: [49152, 65535]
01-Feb-2012 20:07:13.331 using default UDP/IPv6 port range: [49152, 65535]
01-Feb-2012 20:07:13.333 reloading configuration succeeded
01-Feb-2012 20:07:13.416 reloading zones succeeded
01-Feb-2012 20:07:18.357 received SIGHUP signal to reload zones
01-Feb-2012 20:07:18.357 loading configuration from '/private/etc/named.conf'
01-Feb-2012 20:07:18.357 reading built-in trusted keys from file '/private/etc/bind.keys'
01-Feb-2012 20:07:18.358 using default UDP/IPv4 port range: [49152, 65535]
01-Feb-2012 20:07:18.358 using default UDP/IPv6 port range: [49152, 65535]
01-Feb-2012 20:07:18.358 listening on IPv4 interface en1, 192.168.0.14#53
01-Feb-2012 20:07:18.360 reloading configuration succeeded
01-Feb-2012 20:07:18.360 reloading zones succeeded
01-Feb-2012 20:07:18.371 received SIGHUP signal to reload zones
01-Feb-2012 20:07:18.372 loading configuration from '/private/etc/named.conf'
01-Feb-2012 20:07:18.372 reading built-in trusted keys from file '/private/etc/bind.keys'
01-Feb-2012 20:07:18.372 using default UDP/IPv4 port range: [49152, 65535]
01-Feb-2012 20:07:18.372 using default UDP/IPv6 port range: [49152, 65535]
01-Feb-2012 20:07:18.375 reloading configuration succeeded
01-Feb-2012 20:07:18.375 reloading zones succeeded
01-Feb-2012 20:07:18.382 error (host unreachable) resolving 'db._dns-sd._udp.0.0.168.192.in-addr.arpa/PTR/IN': 2001:500:3::42#53
01-Feb-2012 20:07:18.383 error (host unreachable) resolving 'dr._dns-sd._udp.0.0.168.192.in-addr.arpa/PTR/IN': 2001:503:ba3e::2:30#53
01-Feb-2012 20:07:18.384 error (host unreachable) resolving 'nserver3.apple.com/AAAA/IN': 2001:500:2f::f#53
01-Feb-2012 20:07:18.384 error (host unreachable) resolving 'nserver4.apple.com/AAAA/IN': 2001:500:1::803f:235#53
01-Feb-2012 20:07:18.464 error (host unreachable) resolving '14.0.168.192.in-addr.arpa/PTR/IN': 2001:13c7:7010::53#53
01-Feb-2012 20:07:18.464 error (host unreachable) resolving '14.0.168.192.in-addr.arpa/PTR/IN': 2001:500:13::73#53
01-Feb-2012 20:07:18.470 error (host unreachable) resolving 'nserver2.apple.com/A/IN': 2001:503:231d::2:30#53
01-Feb-2012 20:07:18.548 error (host unreachable) resolving 'x.arin.net/A/IN': 2001:503:c27::2:30#53
 
Yes, it's also mentioned above.
realitydirect.local. 7200 IN SOA realitydirect.local. root.realitydirect.local. (
20100601 ; Serial (a date in this case)
15 ; Refresh every 15 minutes
3600 ; Retry every hour
3000000 ; Expire after a month+
86400 ) ; Minimum ttl of 1 day
IN NS realitydirect.local.
IN A 127.0.0.1
*.realitydirect.local. IN A 127.0.0.1