Page MenuHomeVyOS Platform

Configurable FQDN at vbash prompt
Closed, WontfixPublicFEATURE REQUEST

Description

Some network administrator use the same router names for routers which have different domain names.
example:

vyos@r1.example.com:~$
vyos@r1.com.tld:~$

Propose cli command:

set system cli-fqdn

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Duplicate of T1310. It worked in 1.2.2 but its not working as expected in 1.2.3 after using vyos-hostsd

Sorry for duplicate, after T1531 seems this feature broken.
Proposed solution: change for vbash PS1='${debian_chroot:+($debian_chroot)}\u@\H:\w\$ ' to PS1='${debian_chroot:+($debian_chroot)}\u@$(hostname -f):\w\$ '

\h is the short hostname, I thought we want to have the full one (\H)

This comment was removed by kroy.
syncer triaged this task as Low priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

This is not possible as it requires changing the C source code of vyatta-bash during runtime.

https://github.com/vyos/vyatta-cfg/commit/2b2010c42b827e7d119d962c7f4a1bc00900800a

More infos: T1310