how to use different port for dns on Yosemite? According to https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/resolver.5.html

you should be able to set a different port for dns, ie:

 example, 10.0.0.17.55 specifies that the nameserver at 10.0.0.17 uses port 55.


but:

sh-3.2# networksetup -setdnsservers Ethernet 185.37.37.37.54
185.37.37.37.54 is not a valid IP address. No changes were saved...
** Error: The parameters were not valid.


what gives? how can I fix this?
So, the reason for this was that my ISP is filtering DNS requests on port 53. What I did in order to circumvent this hideous action by Vodafone was to install dnsmasq on my mac and add this line to the dnsmasq.conf file:

server=208.67.222.222#5353


as you can see I'm now happily using open dns' DNS on port 5353