Distributing autofs maps through NIS

auto.master and auto.home maps are by default excluded from the Makefile in /var/yp

If you want to use NIS (ypserv) to handout autofs maps, add auto.master and auto.home to “all:" section:

all: auto.master auto.home passwd group hosts rpc services netid protocols mail \
# netgrp shadow publickey networks ethers bootparams printcap \
# amd.home auto.master auto.home auto.local passwd.adjunct \
# timezone locale netmasks

A side note for difference between CentOS 6 & 7 on using autofs:
On CentOS 7, when the mount points are not yet mounted by autofs, mount command would print those mount points with a dummy mount of type autofs.
On CentOS 6, output from mount command omits those dummy mount, tho those dummy mount can see be seen in /proc/mounts.


Using ThinkPad USB keyboard on a Mac

I love using my ThinkPad USB keyboard, so much that I use it on my Mac as well. The trackpoint just helps keep my keyboard tray so clean. But there had been some issue with the trackpoint scroll.

Trackpoint scroll is initiated by pressing the scroll button and pushing the trackpoint. Problem is that the scroll button is registered as middle click on button down, and depending on macOS version and foreground application, that could mean triggering the paste action in any X11 application or Terminal.app (seems to be the case since Mavericks)

But thanks to this thread on AskDifferent, I come across this wonderful app Karabiner, which allows me to disable the middle click entirely. Solving a lingering old and some new problem.

pfSense DNS forward for intranet with private (LAN) domains

Trying to get pfSense’s DNS forwarder to resolve internal DNS using LAN DNS servers, I found that pfSense could resolve internal LAN domains but DNS client always get NOERROR without getting a proper A record from pfSense. Public IP DNS resolve without any issue.

The issue lies in pfSense’s default command line in launching dnsmasq


which would cause the DNS forwarder to be filtered out.

Add the following custom options: