[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2018-04-19 Thread uDude
I vote that this bug be closed based on #32, dnsmasq is fully
controllable.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2018-04-19 Thread Michael Kyle via ubuntu-bugs
I found a solution on stackoverflow thanks to @kbenoit there.

https://askubuntu.com/questions/117899/configure-networkmanagers-
dnsmasq-to-use-etc-hosts

This is not really a bug at all.  You just have to configure stuff under
/etc/NetworkManager/dnsmasq.d instead, e.g.,

# echo "addn-hosts=/etc/hosts" > /etc/NetworkManager/dnsmasq.d/hosts.conf
# service network-manager restart

I will point out the following statement from the networkmanager.conf
man page ON THE GNOME WEBSITE (not on the ubuntu 16.04 man page):

It is possible to pass custom options to the dnsmasq instance by adding
them to files in the "/etc/NetworkManager/dnsmasq.d/" directory.

Add any options you want.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2018-02-16 Thread L-reimann
+1 Also affects me. Took me quite some time to find this bug report.
Very unusual behavior.

Using a hosts.conf in /etc/NetworkManager/dnsmasq.d with the content is not 
able to simulate multiple IP addresses for one FQDN:
address=/admin.app/127.0.0.1

>From the manpage: 
-A, --address=//[domain/][]

Specify  an  IP address to return for any host in the given domains.
Queries in the domains are never forwarded and always replied to with
the specified IP address which may be IPv4 or IPv6. To give both IPv4
and IPv6 addresses for a domain, use repeated -A flags.  Note that
/etc/hosts and DHCP leases override this for individual names.

This is untrue if the --no-hosts is forced upon us. Also I do not like
to restart services to modify a host entry.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2018-01-14 Thread macone
+1 Affects me. Tooks me some time to dig and find out the solution. It's
really bad user experience.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2016-08-24 Thread Kim Scarborough
At the very least there could be a "dnsmasq_options" entry in
NetworkManager.conf that could override the default options that
NetworkManager calls dnsmasq with.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2016-01-27 Thread Gerard Weatherby
Pointlessly aggravating to break something that long term linux users
have relied on for years. At a minimum, a comment in the default
/etc/hosts would be useful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-11-06 Thread god
Much better solution would be adding wildcards support directly to /etc/hosts. 
Or at least to systemd-resolved.
There is even RFE for the latter: https://github.com/systemd/systemd/issues/766

Having dns server running just to add wildcards is really an overkill.
Systemd-resolved is much better suit.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-08-12 Thread Shahar Or
I should have written more in my previous message.
Having a local lightweight DNS server configured by default, even if it does 
not respect `/etc/hosts`, may be seen as an opportunity.
Don't force it to use `/etc/hosts`. Just configure it by adding to 
`/etc/NetworkManager/dnsmasq.d`.
This means we can add wildcards, which isn't possible in `/etc/hosts`.
This is pretty awesome. For a fuller explanation, see here:
http://stackoverflow.com/a/31952754/359072

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-08-10 Thread Shahar Or
Here is different way:
http://stackoverflow.com/q/31735832/359072

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-05-07 Thread Greg Bell
There is a hack-ish workaround, yet it reminds me of the good ol' days of Linux 
when you could actually control things from simple text files:
See Method 1 at https://gist.github.com/magnetikonline/6236150

Between NetworkManager, resolvconf, Bonjour, mDNS, dnsmasq (and I think
even dbus)... things seem to be quite hard to understand, control and
fix these days.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-04-05 Thread d3ngar
WTF? How come this is still an issue for over so many years? I can
actually see that dnsmasq is getting started with the parameters to
ignore the hosts file. This should be fixed, so people can set-up their
networking again!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-02-05 Thread Sonia Hamilton
+1 affects me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2015-02-03 Thread Greg Bell
Affects me.  Ubuntu 14.04.  dig -x 192.168.1.101 takes a long time to
not come up with an answer.  And that's because it's defined in
/etc/hosts.

lsof -i and tcpdump are two programs that can do do reverse-DNS lookups,
and ignoring /etc/hosts means they take way longer than they normally
would.

Hardcoding command line options?  Updates breaking things badly?  Agree
with previous comments.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2014-08-27 Thread Shahar Or
@d1663m, Perhaps Firefox keeps some cache.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2014-08-27 Thread d1663m
Ubuntu 14.04 - Firefox browser refuses to obey /etc/hosts

I have an entry in /etc/hosts pointing to a public internet IP which
doesn't already have a DNS hostname associated.

Following advice from this post: http://askubuntu.com/questions/117899
/configure-dnsmasq-to-use-etc-hosts-file

I added/edited this file on my system:
/etc/NetworkManager/dnsmasq.d/hosts.conf

Adding the following line:
addn-hosts=/etc/hosts

After restarting network-manager, nslookup and dig both respond with the
IP address configured in /etc/hosts as I would expect.

Firefox still refuses to obey the host entry. Even after a system
reboot. Even when dnsmasq is returning a result for command line DNS
lookup tools.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2014-04-21 Thread Fastguy
OK, I managed to send a dbus signal to set specific dns for a specific domain 
but this signal went to the initial dnsmasq started when system booted up.
So the dnsmasq started by the wifi sharing connection has no dbus interface and 
it doesn't read the /etc/hosts. It has totally static hardcoded configuration. 

The only way to overcome this issue was the very dirty solution of
putting dnsmasq in a wrapper script to remove the --no-hosts  parameter
:(

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2014-04-21 Thread Fastguy
I'm on Ubuntu 14.04. This is affecting me. I'm sharing my wifi connection. The 
problem is that there's a server that has to be queried from a DNS outside of 
my normal one, but since dnsmasq is using default DNS servers set by dhcp, the 
devices behind this shared wifi connection can't connect to that specific 
server. 
 I need to add a line to dnsmasq configuration, such as 
server=/this.specific.server/specific.dns.ip
I found no way to do it and even trying to send a message with dbus did not 
work (for me). Probably I could not sort it out.

I have the specific server ip hardcoded in the /etc/hosts file. If
dnsmasq respected the /etc/hosts file, then the hosts behind the shared
wifi connection could have obtained the right ip address for the server.

It's very strange to hardcode dnsmasq parameters into the C code rather
than leaving it out to some configuration file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2014-03-19 Thread Twisted Lucidity
Has this now been resolved?

Because it appears to be working without any of the hack mentioned in
askubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-12-15 Thread lengzhen
** Changed in: network-manager (Ubuntu)
   Status: Opinion => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-12-10 Thread Gary Edwards
I just did a fresh install on 2 laptops that were working fine with
version 12.04.  Both laptops have this issue with version 12.10.  I've
tried commenting out dns=dnsmasq in
/etc/NetworkManager/NetworkManager.conf and creating a wrapper script
for dnsmasq that removes the --no-hosts option.  Neither of these
suggestions worked and the wrapper script caused the system startup to
hang.

I've read comments that the dnsmasq functionality has been part of
Network Manager since version 12.04; however, I didn't see this problem
on 12.04.  It seems that something changed with 12.10 to manifest it.
I'm surprised that I haven't seen more reports of it.  It also seems odd
that some are reporting that the work arounds worked and others are not
reporting the problem at all.

I agree with another poster that this bug should be marked critical.
It's very annoying that such a basic and critical OS functionality was
broken and the bug is only marked as Opinion and remains unassigned.  I
held off on installing 12.10 to allow time for bug fixes but, sadly, I
didn't wait long enough.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-11-05 Thread Adrian Robert
It's great that /etc/hosts is still consulted by ordinary lookups
originating from the Ubuntu system, but the hardcoded removal of
/etc/hosts use from dnsmasq config causes other problems, for example if
you want this system to provide DNS services for other machines, for
example even VMs running in VirtualBox, etc. on the same host.  So,
while there may be some sense of removing the redundant /etc/hosts use
for dnsmasq by default, please make it easier to undo this default, by
making the command-line arguments / config user-visible in a config
file, not hardcoded somewhere inaccessibly.  Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-08-25 Thread marc...@gmail.com
Well, my system is a fresh install were I just preserved my home
directory and the 1.2.3.4 foo doesn't works.

The nsswitch.conf does have the 'files' on the hosts: entry. So, I must
assume that either:

1) My system install was broken someway OR
2) There is some config file on user's home which can affect the DNS resolving 
OR
2) indeed /etc/hosts is being IGNORED, on a fresh install. 

Well, I don't have time to dig into this, but I will gladly give any
required information you request.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-20 Thread Christian
I removed my comment, because I found out that there was a mistake in my
Kerberos config. I couldn't figure it out because the ping 
doesn't work in my case  because the companies firewall doesn't allow
it. Its better to use something like traceroute  in this case. But
sometimes one cannot see things ;-) So luckily I must admit that
/etc/hosts works for me.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-18 Thread Thomas Hood
jerico wrote:
> I've got no instance of dnsmasq running and entries
> in /etc/hosts are respected when e.g. letting Firefox
> (or any other application I've access to) resolve URLs.

Yes, that is because the libc resolver consults /etc/hosts without doing
a DNS lookup.

> AFAIK /etc/hosts is in not directly linked to dnsmasq
> and it doesn't matter whether DNS lookups are done
> externally or not.

The standalone dnsmasq (i.e., the dnsmasq that runs when the dnsmasq
package is installed) does consult /etc/hosts when resolving names.
This feature can be disabled.

> The hosts mechanism is much older than dnsmasq.

That's true.

[...]
> IMO it is most unusual for a Linux distribution to provide
> a default configuration that does not respect /etc/hosts.

That would be highly unusual.  Ubuntu is not unusual in this respect. In
Ubuntu 12.04 /etc/nsswitch contains

hosts:  files mdns4_minimal [NOTFOUND=return] dns mdns4

thus for host name lookups the libc resolver looks first at /etc/hosts.

Try this yourself.  Add the line

1.2.3.4 foo

to /etc/hosts and then try "ping foo".

 $ ping foo
PING foo (1.2.3.4) 56(84) bytes of data.
^C


** Changed in: network-manager (Ubuntu)
   Status: Confirmed => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-18 Thread Thomas Hood
Argh, I wrote "But prior to Ubuntu 12.04, NM didn't start a local
nameserver at all; no DNS lookups were done externally and /etc/hosts
wasn't respected then either."  There's a typo in there.  I meant to
say:

But prior to Ubuntu 12.04, NM didn't start a local nameserver at
all; DNS lookups were done externally and /etc/hosts wasn't respected
then either.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-17 Thread jerico
The previous poster wrote: "But prior to Ubuntu 12.04, NM didn't start a
local nameserver at all; no DNS lookups were done externally and
/etc/hosts wasn't respected then either."

IMO this is not true. I've got no instance of dnsmasq running and
entries in /etc/hosts are respected when e.g. letting Firefox (or any
other application I've access to) resolve URLs.

AFAIK /etc/hosts is in not directly linked to dnsmasq and it doesn't
matter whether DNS lookups are done externally or not. The hosts
mechanism is much older than dnsmasq. For backwards compatibility it has
always been maintained as a first layer of resolving host names. IMO it
is most unusual for a Linux distribution to provide a default
configuration that does not respect /etc/hosts. To my knowledge there's
no other operating system distribution (including Mac + Windows) that
does so.

Of course you are free to configure default Ubuntu as you like. But it
would be great to respect published upgrade policy. What happened is
that the upgrade to 12.04 silently changed the configuration in a way
that broke all working /etc/hosts configurations. It is basic
Debian/Ubuntu policy that such a thing should not happen without at
least consulting the user and giving him/her a choice or a heads up.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-17 Thread Thomas Hood
Contributors have claimed here (bug #993298) above that /etc/hosts is no
longer respected, but that is not the case.  As always, with

hosts:  files [...]

in /etc/nsswitch.conf, the libc resolver consults /etc/hosts first.

Yes, NM runs dnsmasq with the no-hosts option. Consequently a DNS lookup
on 127.0.0.1 does not respect /etc/hosts.  But prior to Ubuntu 12.04, NM
didn't start a local nameserver at all; no DNS lookups were done
externally and /etc/hosts wasn't respected then either.

The contributors who say that /etc/hosts is "no longer" consulted must
(I conclude) have been running the standalone server version of dnsmasq
before. That dnsmasq respects /etc/hosts and listens at 127.0.0.1 by
default.  Now, because of bug #959037 it is not possible in Ubuntu 12.04
to run standalone dnsmasq alongside nm-dnsmasq. But it *is* possible to
run standalone dnsmasq if nm-dnsmasq is disabled (by commenting out
"dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf and restarting
network-manager) and that should restore the old situation.

Assuming that the underlying wish is that standalone dnsmasq can be run
without the need to comment out "dns=dnsmasq", I propose to merge this
report with #959037 which discusses ways of realizing this.  See, for
example, comment #88 in that bug report.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-17 Thread Thomas Hood
@Christian: Can you explain how everything was configured when it
worked?  Were you using dnsmasq locally?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 993298] Re: Please make NetworkManager-controlled dnsmasq respect /etc/hosts

2012-07-17 Thread Thomas Hood
** Summary changed:

- NetworkManager-controlled dnsmasq does not respect /etc/hosts
+ Please make NetworkManager-controlled dnsmasq respect /etc/hosts

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993298

Title:
  Please make NetworkManager-controlled dnsmasq respect /etc/hosts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/993298/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs