Page MenuHomePhabricator

"system domain-name" is not reflected in /etc/resolv.conf
Closed, ResolvedPublicBUG


With set system domain-name we should get a line search in /etc/resolv.conf


Difficulty level
Normal (likely a few hours)
VyOS 1.2.0-EPA2
Why the issue appeared?
Will be filled on close
c-po created this task.Jan 11 2019, 7:57 AM
pasik added a subscriber: pasik.Jan 11 2019, 12:09 PM
syncer triaged this task as Low priority.Jan 12 2019, 6:31 PM
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.
c-po added a comment.Tue, Feb 12, 5:46 AM

Something seems to be totally off with set system domain-name and set system domain-search domain

Setting both gives us:

[ system domain-search domain ]
System configuration error.  Both 'domain-name' and 'domain-search' are specified, but only one of these mutually exclusive parameters is allowed.

But its valid according to the Linux resolv.conf(5) man page.

To be changed bahavior:

set system domain-name should result in an /etc/resolv.conf entry like:


set system domain-search domain should result in an /etc/resolv.conf entry like:


When both are present, the file should look like:


Taking the limit into account

The search list is currently limited to six domains with a total of 256 characters.

c-po claimed this task.Tue, Feb 12, 5:46 AM
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po closed this task as Resolved.Sat, Feb 16, 7:33 PM