Bugzilla – Bug 402934
Can not set DNS
Last modified: 2008-07-01 16:02:01 UTC
I'm using Swedish menus in GNOME desktop, so everything below is a translation of the Swedish texts. - I opened YAST-Network Settings - Selected DNS tab Typed: - Hostname: linux - Domain: mydomain - Ticked: (greyed out:)Change hostname via DHCP No interface with dhcp - Not ticked: Write hostname to /etc/hosts - Not ticked: Change /etc/resolv.conf manually Nameserver 1: 195.67.199.9 Nameserver 2: 195.67.199.10 Domain serching filed: (blank) Ticked: (grayed out:)Update DNS data via DHCP No interface with dhcp ---------------- When I push the Finish button, a new window open, where "ticks" are set in a list which begins with: "Write drive routine information" etc. When the "ticks" comes to the line "Activate network services", an error popup is shown with the text: "Cannot access installation media (Medium1)." The "show details" line shows following URL: download.opensuse.org/distribution/11.0/repo/non-oss "Download (curl) error for 'http://download.opensuse.org/distribution/11.0/repo/non-oss/repodata/repomd.xml': Error code: Error message: Couldn't resolve host 'download.opensuse.org'" -------------- After that file "/etc/resolv.conf" is cleared and the DNS service has stopped. In order to get the DNS the work again, I had to edit "resolv.conf" manually.
When boot my computer file "/etc/resolv.conf" is always cleared. On the first tab in "Network Settings" the alternative "traditional method with ifup" is NOT selected.
If I activate "traditional method with ifup" it looks like the DNS is setup correctly and resolv.conf is NOT cleared.
Are you using a static IP? I could not get my DNS info to be saved while using a static IP. To workaround, I switched my network card back to DHCP and then assigned the name servers and then set the card to use a static address again.
*** This bug has been marked as a duplicate of bug 393046 ***
Yes, I'm using static IP-adresses and not DHCP. I have a Netgear router connect to ADSL, set to 192.168.1.1. The default gateway also set to this address. /etc/resolv.conf is set to 192.168.1.1. Everything is workning now, but I have to select "traditional method with ifup" in the Network settings.