[MacPorts] #25940: dnsmasq-2.55 Error in .plist causes dnsmasq not to run.

MacPorts noreply at macports.org
Tue Aug 3 15:56:08 PDT 2010


#25940: dnsmasq-2.55 Error in .plist causes dnsmasq not to run.
-----------------------------------+----------------------------------------
 Reporter:  johnnypuffs@…          |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.9.1                                
 Keywords:  dnsmasq .plist         |        Port:  dnsmasq                              
-----------------------------------+----------------------------------------
 Running OS X 10.6.4 and Xcode 3.2.3

 I installed dnsmasq via Macports and updated the dnsmasq.config file to
 the specs I needed to work on my system. I confirmed that dnsmasq was
 running but it was not working as a DNS forwarder (I only have it setup
 for DNS, not DHCP)

 For the life of me I could not figure out why it was not working properly.
 After hours of banging my head I realized it was not reading an option in
 my config file I needed.

 My DSL modem/router overwrites my resolv.conf file so I needed to use a
 different file. I set this option in the config file to:

 {{{
 # Change this line if you want dns to get its upstream servers from
 # somewhere other that /etc/resolv.conf
 resolv-file=/private/etc/resolv2.conf
 }}}

 Yet it still did not work correctly.

 I finally realized that the .plist file overrides the config options and
 that the standard .plist includes:

 {{{
      <string>-r</string>
      <string>/etc/resolv.conf</string>
 }}}

 I assumed that any option I set in config would be written to .plist if
 need be, but apparently that is not the case. I manually updated the
 .plist to reflect my config file:

 {{{
      <string>-r</string>
      <string>/etc/resolv2.conf</string>
 }}}

 That solved the problem.

 I am sure that many people using dnsmasq have a resolv.conf that is
 overwritten. Either that string needs to be taken out of the .plist or the
 .plist needs to be updated if .config is changed.

-- 
Ticket URL: <http://trac.macports.org/ticket/25940>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list