VirtualBox

Opened 8 years ago

Closed 8 years ago

#15392 closed defect (fixed)

Virtualbox interprets commented lines in resolv.conf

Reported by: JohnCC330 Owned by:
Component: network Version: VirtualBox 5.0.20
Keywords: resolv.conf Cc:
Guest type: Linux Host type: Linux

Description

When installing 5.0.18 (and then 5.0.20) I found that I couldn't use DNS from an installed Debian client (it couldn't access the repos). I tracked the internet traffic with Wireshark, and found it was using DNS IPs I had commented in the host's resolv.conf long ago. The lines were commented with semi-colons (;) as instructed in the resolv.conf man-page.

Sure enough, changing the order of lines, changed the order of the lines, changed the order of DNS requests. Putting valid IPs in front, made the appear, and made the Debian install work correctly. I also confirmed this by cat /etc/resolv.conf in the client. (It's necessary to disconnect/reconnect the network to read the re-read the host's resolv.conf.

Change History (2)

comment:1 by Valery Ushakov, 8 years ago

This is a bug in the resolv.conf parser. As a quick workaround you should be able to use hash sign (#) as a comment.

comment:2 by Valery Ushakov, 8 years ago

Resolution: fixed
Status: newclosed

Should be fixed in 5.0.22 released today.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use