Bug 221193 - knetworkmanager ignores DNS settings
Summary: knetworkmanager ignores DNS settings
Status: RESOLVED FIXED
Alias: None
Product: Network Management
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Will Stephenson
URL:
Keywords:
: 221425 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-04 00:55 UTC by thomas gahr
Modified: 2010-01-09 01:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
relevant parts of tail -f /var/log/messages (7.77 KB, text/plain)
2010-01-08 12:50 UTC, thomas gahr
Details
dbus dump (819 bytes, text/plain)
2010-01-08 23:58 UTC, thomas gahr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thomas gahr 2010-01-04 00:55:22 UTC
Version:           unknown (using 4.3.4 (KDE 4.3.4), 4.3.4-3.fc12 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.9-174.fc12.i686

when configuring knetworkmanager to get only IP adresses from dhcp and setting DNS manually, it still configures the DNS over dhcp, resulting in /etc/resolv.conf:

# Generated by NetworkManager
domain Speedport_W_303V_Typ_B
search Speedport_W_303V_Typ_B
nameserver 192.168.2.1

which is not the dns I configured, I have to create /etc/dhclient-wlan0.conf to prepend the desired DNS
Comment 1 Will Stephenson 2010-01-05 17:51:40 UTC
Please show me the DBUS dump of this connection.  Instructions are at http://userbase.kde.org/NetworkManagement
Comment 2 Will Stephenson 2010-01-05 18:30:50 UTC
*** Bug 221425 has been marked as a duplicate of this bug. ***
Comment 3 thomas gahr 2010-01-08 12:50:28 UTC
Created attachment 39685 [details]
relevant parts of tail -f /var/log/messages
Comment 4 thomas gahr 2010-01-08 12:53:16 UTC
Couldn't figure out how to get the dumps from qdbus i'll get the sources and rebuild knetworkmanager from source to check if the bug is still there and if yes get information from qdbusfornm.
anyway i made an attachment with the relevant parts of tail -f /var/log/messages since dbus seems to log there on fedora.
note though that the message from dhclient about the DNS 80.something.something is only there because of the prepend.
Comment 5 Will Stephenson 2010-01-08 14:12:12 UTC
Do

 qdbus --literal --system org.freedesktop.NetworkManagerUserSettings

to get a list of all connections

Then (replacing the 0 with the number of the problematic connection)

qdbus --literal --system org.freedesktop.NetworkManagerUserSettings \
/org/freedesktop/NetworkManagerSettings/0 \
org.freedesktop.NetworkManagerSettings.Connection.GetSettings

If you have many connections, try them all, or delete the others.
Comment 6 Will Stephenson 2010-01-08 14:55:24 UTC
https://bugs.kde.org/show_bug.cgi?id=221439 may be related
Comment 7 Will Stephenson 2010-01-08 18:09:31 UTC
SVN commit 1071754 by wstephens:

Actually send the 'ignore DHCP DNS settings' to NetworkManager'.
BUG: 221193


 M  +1 -0      ipv4dbus.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1071754
Comment 8 thomas gahr 2010-01-08 23:58:23 UTC
Created attachment 39703 [details]
dbus dump

gosh i feel stupid - i used one dash instead of two at "--literal"...
ok, i hope i made the output a bit more readable.
Comment 9 thomas gahr 2010-01-09 01:12:51 UTC
OK, just rebuilt form svn - fixed