callsign icon indicating copy to clipboard operation
callsign copied to clipboard

Support for OS X

Open prologic opened this issue 11 years ago • 3 comments

I know you probably didn't write this for OS X in mind but it would be nice :)

$ minidns -c etc/minidns.conf start
Password:
sudo: iptables: command not found
sudo: iptables: command not found
Traceback (most recent call last):
  File "/Users/s2092651/.virtualenvs/minidns/bin/minidns", line 9, in <module>
    load_entry_point('minidns==0.3', 'console_scripts', 'minidns')()
  File "/Users/s2092651/.virtualenvs/minidns/lib/python2.7/site-packages/minidns/scripts/server.py", line 191, in run
    client.start()
  File "/Users/s2092651/.virtualenvs/minidns/lib/python2.7/site-packages/minidns/scripts/server.py", line 75, in start
    os.environ["MINIDNS_CONFIG_FILE"] = opts.config
NameError: global name 'opts' is not defined

prologic avatar Sep 12 '13 00:09 prologic

The plan for OSX support is to use /etc/resolver to declare a local TLD (such as .dev):

http://blog.scottlowe.org/2006/01/04/mac-os-x-and-local-domains/

You would put something like this in /etc/resolver/dev:

nameserver 127.0.0.1
port 8053

And have a launchd config to run it as a non-root user on that port.

It would then allow you to have any zone you wanted under .dev.

That neatly avoids any use of iptables, too.

Jc2k avatar Jan 22 '14 14:01 Jc2k

The way I have my iMac setup at work this would work perfectly along with supervisor which I use to run up things (because I can't stand launchd!)

Nice work! :)

cheers James

James Mills / prologic

E: [email protected] W: prologic.shortcircuit.net.au

On Thu, Jan 23, 2014 at 12:19 AM, John Carr [email protected]:

The plan for OSX support is to use /etc/resolver to declare a local TLD (such as .dev):

http://blog.scottlowe.org/2006/01/04/mac-os-x-and-local-domains/

You would put something like this in /etc/resolver/dev:

nameserver 127.0.0.1 port 8053

And have a launchd config to run it as a non-root user on that port.

It would then allow you to have any zone you wanted under .dev.

That neatly avoids any use of iptables, too.

— Reply to this email directly or view it on GitHubhttps://github.com/yaybu/minidns/issues/1#issuecomment-33026306 .

prologic avatar Jan 22 '14 14:01 prologic

Any progress on this?

prologic avatar Feb 05 '14 03:02 prologic