Re: BIND9 stopped working...
On Apr 9, 2007, at 8:27 AM, Daniel J. Luke wrote:
On Apr 8, 2007, at 8:46 PM, Alex Kac wrote:
Nope. I have no restrictions at all. What's weird is if I restart it, it works fine. Not an option for a server, though.
if you restart the server?
What if you just restart bind?
or kill -HUP it ?
Well that's what I mean. If I HUP named, its fine. Works great. No problem. But if I restart the server then it doesn't work. It seems like on startup it doesn't realize what IP addresses I have and so only listens on localhost. If I HUP it after the server is running, it realizes what IPs I have and starts just fine. I'm going to play with the config file. I just don't understand why it was working fine before, but not after the changeip script.
On Apr 8, 2007, at 7:41 PM, Daniel J. Luke wrote:
Do you have listen-on or allow-query options set in your named.conf file?
You probably just have to update the address from the old IP to the new one in there.
-- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Alex Kac - President and Founder Web Information Solutions, Inc. - Microsoft Certified Partner "The person who is not hungry says that the coconut has a hard shell." -- African Tribal Saying
On Apr 9, 2007, at 11:09 AM, Alex Kac wrote:
Well that's what I mean. If I HUP named, its fine. Works great. No problem. But if I restart the server then it doesn't work. It seems like on startup it doesn't realize what IP addresses I have and so only listens on localhost. If I HUP it after the server is running, it realizes what IPs I have and starts just fine.
Interesting, perhaps named starts before your interface is up and so doesn't respond on it?
I'm going to play with the config file. I just don't understand why it was working fine before, but not after the changeip script.
Try adding something like options { listen-on {any; }; }; (you might want to replace any; with an ACL for who you want to actually be able to query your server, though - see http:// www.cymru.com/Documents/secure-bind-template.html) -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On Apr 9, 2007, at 8:09 AM, Alex Kac wrote:
On Apr 9, 2007, at 8:27 AM, Daniel J. Luke wrote:
On Apr 8, 2007, at 8:46 PM, Alex Kac wrote:
Nope. I have no restrictions at all. What's weird is if I restart it, it works fine. Not an option for a server, though.
if you restart the server?
What if you just restart bind?
or kill -HUP it ?
Well that's what I mean. If I HUP named, its fine. Works great. No problem. But if I restart the server then it doesn't work. It seems like on startup it doesn't realize what IP addresses I have and so only listens on localhost. If I HUP it after the server is running, it realizes what IPs I have and starts just fine.
I'm going to play with the config file. I just don't understand why it was working fine before, but not after the changeip script.
Hi Alex, You might try adding the option "--restart-netchange" to the daemondo invocation in /Library/LaunchDaemons/org.macports.bind9.plist: <string>--restart-netchange</string> This should cause daemondo to restart bind if the ip address changes, which is probably occurring after bind gets running. James
On Apr 8, 2007, at 7:41 PM, Daniel J. Luke wrote:
Do you have listen-on or allow-query options set in your named.conf file?
You probably just have to update the address from the old IP to the new one in there.
-- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Alex Kac - President and Founder Web Information Solutions, Inc. - Microsoft Certified Partner
"The person who is not hungry says that the coconut has a hard shell." -- African Tribal Saying
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (3)
-
Alex Kac
-
Daniel J. Luke
-
James Berry