0
I am using kde5-nm-connection-editor to generate hotspot from my laptop. Now I want to start a dnsmasq dns server. It seems that these 2 things can't run simultaneously.
If I first create a hotspot and then start the dnsmasq dns server, it says:
dnsmasq: failed to create listening socket for port 53: Address already in use
If I try to kill the process using port 53 (which is probably network-manager), it kills it but the error persists. I think that network manager very quickly takes control of port 53 again!
If I first start the dns server, I am not able to start the hotspot. Please help!
Thanks @hardillb I described what I did in the answer below. However, can you explain a bit more about this line: "Else you may be able to run a second instance by making it only bind to the none WiFi interface"? – vaibhavS – 2017-08-05T18:16:12.013
When you say 'bind to none WiFi interface', do you mean setting 'interface=lo' and 'bind-interface' in dnsmasq.conf. If you mean this, I tried it but it doesn't listen to public IPs. In this case my dns server will only be served to my machine but not on the hosts it is connected to. – vaibhavS – 2017-08-05T18:20:29.053
If one instance isn't told to limit which interfaces it will bind to all, this will stop any other instances only binding to specific interfaces. – hardillb – 2017-08-05T18:22:04.413