Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jman70

macrumors newbie
Original poster
Quoted from the resolver manual page (type "man 5 resolver" in the terminal window):

---Begin Quote---

Note that
the /etc/resolv.conf file, which contains configuration for the
default (or "primary") DNS resolver client, is maintained automati-
cally by Mac OS X and should not be edited manually. Changes to the
DNS configuration should be made by using the Network Preferences
panel.


The different configuration options are given below.

nameserver
Internet address (in dot notation for IPv4 or in colon notation for
IPv6) of a name server that the resolver should query. The address
may optionally have a trailing dot followed by a port number. For
example, 10.0.0.17.55 specifies that the nameserver at 10.0.0.17
uses port 55.

---End Quote---

I'm running 10.5.1

I have a user space secure nameserver running on port 9999, but the Network Preferences configurator won't let me add a port number, either as 127.0.0.1:9999 or 127.0.0.1.9999

Now, if I'm naughty and enable root, then su and edit resolv.conf manually, I can have just:

nameserver 127.0.0.1.9999

and it works fine, but I don't want root enabled, nor do I want to have to log in as an admin either. It should be doable as a standard user.

As a kludge, I've installed a named process on port 53 that redirects all unknown requests to port 9999 and have launchd run that at boot time, but that's adding an unnecessary process which wouldn't be needed if Network Preferences followed the proper resolver convention!

I assume that if it's in the man page, it must be implemented in Network Preferences, but I've not been able to work out how, or find instructions in any web search.

Someone please help me!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.