BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

Allow to bind to privileged port (sudo) #32

Closed njam closed 10 years ago

njam commented 10 years ago

Based on https://github.com/BerlinVagrant/vagrant-dns/pull/31

This generall works fine.

The only edge case which is problematic is when changing the port from a privileged to a non-privileged one. Then I'll try stopping the previous daemon process (which is running as root) as the current user, which obviously fails. To work around that we could always use sudo, but this might annoy people who are not using privileged ports.

@kris-lab @fnordfish please review

njam commented 10 years ago

I've found a better solution for this problem: Installing a local bind DNS server which forwards to the vagrant-dns server with:

options {
    forwarders {
        127.0.0.1 port 5300;
    };
};