I'am trying to build a bridge for a VirtualBox.
To do that I used this tutorial with a few exceptions because some of the tips not working for Ubuntu 18.04
All of exceptions was on the dns part setting.
- I have installed dnsmasq component with a Terminal
apt-get install dnsmasq
- Edited /etc/dnsmasq.conf to include:
interface=vnet0 dhcp-range=172.16.0.2,172.16.0.254,1h
- Restarted dnsmasq with folowing command:
/etc/init.d/dnsmasq restart
- Not working in Ubuntu 18.04; So I used this command instead:sudo service network-manager restart
- All other parts was like in the tutorial.
But suddenly my VirtualMachine is not connecting to internet so I checked a status of dnsmasq and it gived me this data in Terminal window:
dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-06-22 13:44:57 MSK; 1min 50s ago
systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
dnsmasq[6885]: dnsmasq: syntax check OK.
dnsmasq[6886]: dnsmasq: failed to create listening socket for port 53: Already in use
dnsmasq[6886]: failed to create listening socket for port 53: Already in use
dnsmasq[6886]: FAILED to start up
systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
I seeked for the solution in google, found some tips on bugs.launchpad
Tried to do as "Simon Déziel (sdeziel)" commented, his comment:
Adding the following to the [Unit] section of dnsmasq.service fixes the problem: After=network-online.target Wants=network-online.target
But nothing has changed.
I am stuck for now, I am a new user on linux, so maybe there somthing I have missed.
EDITED*
Not working.
Found some kind of solution but it't more like a stick than a full solution.
Found it here by yosi1984:
You have systemd-resolved enabled as the local DNS server. You can disable it by setting DNSStubListener=no
in /etc/systemd/resolved.conf
and then restart
the systemd-resolved service
. It will then start without binding to port 53, allowing dnsmasq to bind instead.Thing is bridge started to working, but the connection on my host machine was compleatly blocked.
Previous actions didn't help either.
EDITED*
Found some solution that fixes the issue of 53 port thanks to: cmak.fr
His answer in his question fixes the problem with blocking internet connection on host machine.
But the trouble with VM still stands, it can send packages throug bridge-connection but not recieving them back, so still no safe connection on VirtualMachin, and I am stuck again.
0 Answers