LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2010, 10:59 PM   #1
mikedia
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Why does my network sharing work after I disable dnsmasq?


I'm sharing the wireless signal (wlan0) on my fedora 12 machine.

However, when the computer starts up I have to execute:

> service dnsmasq stop


Only after this, will the computer share the internet signal (through eth0).


Why is that? Should I uninstall dnsmasq?

I've already removed it from chkconfig:

> chkconfig --del dnsmasq
 
Old 03-19-2010, 01:37 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
I don't have any immediate ideas about where the problem may be but will ask a few questions which will hopefully clarify the problem.

Are you using dnsmasq as a DHCP server, a DNS lookup service or both?

When you write "I'm sharing the wireless signal (wlan0)" do you mean that other computers on your LAN are connecting to the Internet via wlan0 on this system, that is they are using this system as a gateway?

If so, what have you done to set up this system as a gateway? In particular is there anything in that configuration which is validating the gateway clients?

Please post the output of
Code:
cat /etc/dnsmasq.conf | grep -E -v '^#|^$'
cat /etc/resolv.conf | grep -E -v '^#|^$'
cat /etc/hosts | grep -E -v '^#|^$'
cat /etc/nsswitch.conf | grep -E -v '^#|^$'
If your dnsmasq.conf has an uncommented resolv-file= line please also post similar for the file named on that line.
 
Old 03-19-2010, 08:32 PM   #3
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
Are you sharing the network via NetworkManager? Dnsmasq is meant to provide name resolution and a DHCP server, which I think NetworkManager does when you tell it you want to share a network interface. My guess is that when they both run they are stepping on each other.

If you are using NetworkManager, and everything works fine, you can probably get by without dnsmasq. You can probably uninstall it if you'd like.
 
Old 03-19-2010, 11:28 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by linuxpyro View Post
If you are using NetworkManager, and everything works fine, you can probably get by without dnsmasq. You can probably uninstall it if you'd like.
Ha! Given a choice between uninstalling one or the other, I'd uninstall NetworkManager unless the computer is frequently connected to different LANs.
 
Old 03-20-2010, 12:23 PM   #5
linuxpyro
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 134

Rep: Reputation: 16
Quote:
Originally Posted by catkin View Post
Ha! Given a choice between uninstalling one or the other, I'd uninstall NetworkManager unless the computer is frequently connected to different LANs.
NetworkManager might be valuable because it does make it a little easier to setup the wireless. But I guess the real downside of it is that it gets killed when you log out, so it's not the greatest choice for an always-on Internet gateway. Though if he's just setting up an impromptu wireless network NetworkManager's easy enough.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up a private network, using dnsmasq, I have small problem lhorace Linux - Server 1 10-12-2009 03:17 AM
bridge-utils / dnsmasq / iptables / debian => internet sharing problems cocchiararo Linux - Networking 5 09-17-2009 07:27 PM
dnsmasq and internet sharing johnh10000 Linux - Networking 0 05-23-2009 04:43 AM
dnsmasq can't work ultrax Linux - Networking 1 08-05-2005 09:06 PM
Network sharing doesn't work more then a few seconds spiri Debian 9 04-28-2004 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration