Page MenuHomeVyOS Platform

error in generated /etc/hosts file
Closed, ResolvedPublicBUG


From forum:

There seems to be a bug in v1.2.3: the first entry in the hosts file is missing a carriage return and then it fails to resolve that hostname. the subsequent ones will work though.

admin@vyos:~$ cat /etc/hosts

### Autogenerated by VyOS ###
### Do not edit, your changes will get overwritten ###

# Local host       localhost       vyos.lan vyos

# The following lines are desirable for IPv6 capable hosts
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

# From DHCP and "system static host-mapping"	 macosmini.lan	 #on-dhcp-event 00:00:0F:11:11:11	 macmini.lan	 #on-dhcp-event 00:00:0F:11:11:11


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

syncer triaged this task as Low priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

Has been fixed already.

erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:17 PM