Project

General

Profile

Actions

Feature #12551

open

Add ability to set DNS resolver search domain list

Added by Chris Linstruth over 3 years ago. Updated about 1 month ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
DNS Resolver
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

As it exists right now, the Domain set in System > General is added as a search domain in /etc/resolv.conf.

It would be nice to have a way to set additional search domains.

Perhaps something like a comma-separated list of "Additional DNS search domains" in a field below the domain there. Or perhaps down in the DNS configuration area.

Consideration should probably also be given to search domains provided from a WAN DHCP server. Probably controlled by the override checkbox there or a separate, similar toggle.

I don't see a category that really fits so I'm setting DNS Resolver here.

Actions #1

Updated by → luckman212 about 1 month ago

Until or if ever this exists, I found that it does work to encode the domain list in hex and add it under DHCP Server > Additional BOOTP/DHCP Options:

E.g. to add the domains lan. and internal. to your DHCP search scope, you would use:

Option: 119
Type:   String
Value:  03:6C:61:6E:00:08:69:6E:74:65:72:6E:61:6C:00

Tested and working as of macOS 15.3 + Windows 11.

Also N.B.– RFC3397 https://www.rfc-editor.org/rfc/rfc3397.html describes a more efficient way to encode the hex when there are multiple related subdomains, e.g. marketing.acme.com, sales.acme.com and asia-pacific.acme.com but I haven't figured that out yet.

Actions

Also available in: Atom PDF