Support per-nameserver port setting.