Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for OS X #1

Open
prologic opened this issue Sep 12, 2013 · 3 comments
Open

Support for OS X #1

prologic opened this issue Sep 12, 2013 · 3 comments
Assignees

Comments

@prologic
Copy link

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
@Jc2k
Copy link
Member

Jc2k commented Jan 22, 2014

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.

@prologic
Copy link
Author

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//issues/1#issuecomment-33026306
.

@prologic
Copy link
Author

prologic commented Feb 5, 2014

Any progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants