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)

Event Timeline

c-po created this task.Nov 18 2019, 3:17 PM
pasik added a subscriber: pasik.Nov 18 2019, 8:01 PM
syncer assigned this task to hagbard.Nov 23 2019, 12:04 PM
syncer triaged this task as Low priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.
hagbard closed this task as Resolved.Jan 9 2020, 5:21 PM

Has been fixed already.

c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Feb 9 2020, 2:16 PM