openSUSE Forums > Network/Internet » Static DNS using NetwotkManager

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read

Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Jul-2009, 09:29
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 129
roberto60 hasn't been rated much yet
Question Static DNS using NetwotkManager

Hi
I installed my Huawei E220 USB card for HSDPA connection on opensuse 11.0 and it worked out of the box with NetworkManager.
I want to use OpenDNS name servers and not the name servers dinamically set by my provider.
I tryed setting the keyword

MODIFY_RESOLV_CONF_STATIC_DNS

with the IP of the OpenDNS but it doesn't work the DNS used was the ones supplied by the provider.
Is it possible to solve the problem?
__________________
Saluti
R
Reply With Quote
  #2 (permalink)  
Old 06-Jul-2009, 16:30
Busy Penguin
 
Join Date: Jun 2008
Location: Berlin, Germany
Posts: 295
supertimorplusfort hasn't been rated much yet
Default Re: Static DNS using NetwotkManager

Hi. If you can't tell Knetworkmanager (or gnomenetworkmanager) to use your preferred nameserser you can modify "NETCONFIG_DNS_STATIC_SERVERS" in "/etc/sysconfig/network/config". Maybe that helps...
Reply With Quote
  #3 (permalink)  
Old 07-Jul-2009, 09:11
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 129
roberto60 hasn't been rated much yet
Default Re: Static DNS using NetwotkManager

thank you but on my Opensuse 11.0 I wasn't able to find any key like:

"NETCONFIG_DNS_STATIC_SERVERS"
__________________
Saluti
R
Reply With Quote
  #4 (permalink)  
Old 07-Jul-2009, 09:59
Camaleón
Guest
 
Posts: n/a
Default Re: Static DNS using NetwotkManager

roberto60 wrote:

> I installed my Huawei E220 USB card for HSDPA connection on opensuse
> 11.0 and it worked out of the box with NetworkManager.
> I want to use OpenDNS name servers and not the name servers
> dinamically set by my provider.
> I tryed setting the keyword
>
> MODIFY_RESOLV_CONF_STATIC_DNS
>
> with the IP of the OpenDNS but it doesn't work the DNS used was the
> ones supplied by the provider.
> Is it possible to solve the problem?


Not sure if this would help, but if you are using dhcp, you can try to
edit /etc/dhclient.conf by adding:

***
supersede domain-name-servers 208.67.222.222, 208.67.220.220;
***

And then restarting network service with "rcnetwork restart" command.

Greetings,

--
Camaleón
Reply With Quote
  #5 (permalink)  
Old 08-Jul-2009, 08:09
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 129
roberto60 hasn't been rated much yet
Default Re: Static DNS using NetwotkManager

Hi
I tryed modify dhcp.conf but it hanged up networkmanager while connecting to the gsm network
__________________
Saluti
R
Reply With Quote
  #6 (permalink)  
Old 08-Jul-2009, 08:35
Camaleón
Guest
 
Posts: n/a
Default Re: Static DNS using NetwotkManager

roberto60 wrote:

> I tryed modify dhcp.conf but it hanged up networkmanager while
> connecting to the gsm network


I said nothing about "dhcp.conf" but "dhclient.conf" :-?. Just verify you
edited the right file.

What error message are you getting from networkmanager?

Greetings,

--
Camaleón
Reply With Quote
  #7 (permalink)  
Old 08-Jul-2009, 09:17
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 129
roberto60 hasn't been rated much yet
Default Re: Static DNS using NetwotkManager

Quote:
Originally Posted by Camaleón View Post
[color=blue]
I said nothing about "dhcp.conf" but "dhclient.conf" :-?. Just verify you
edited the right file.

What error message are you getting from networkmanager?

Greetings,

--
Camaleón
Sorry my typing mistake I edited "dhclient.conf".

I got no error message but I cannot access networkmanager, clicking its icon on the gnome panel, it hangs while trying to establish the connection.
__________________
Saluti
R
Reply With Quote
  #8 (permalink)  
Old 08-Jul-2009, 10:23
Camaleón
Guest
 
Posts: n/a
Default Re: Static DNS using NetwotkManager

roberto60 wrote:

> Sorry my typing mistake I edited "dhclient.conf".


O.k. No problem.

"dhcp.conf" is the file that controls dhcp server, so I asked :-)

> I got no error message but I cannot access networkmanager, clicking its
> icon on the gnome panel, it hangs while trying to establish the
> connection.


It is strange... can you please post the content of /etc/dhclient.conf?

Also, take a quick look at networkmanager log located
in /var/log/NetworkManager and post here any suspicious error you are
getting (if any).

Greetings,

--
Camaleón
Reply With Quote
  #9 (permalink)  
Old 08-Jul-2009, 16:58
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 129
roberto60 hasn't been rated much yet
Default Re: Static DNS using NetwotkManager

I'm sorry to be plain I cant find the keyword you pointed to me so I modified the

prepend domain-name-servers

Code:
# dhclient configuration file
# see "man dhclient.conf" for further details
# file: /etc/dhclient.conf
#


######################################################
# Suggested configurations for Cable Modem providers #
#
# uncomment and fill in the appropriate section

#####################################################
# @Home -- TCI, etc
#
# Uncomment the following line and enter your Client ID, which should
# have come in your mail from @Home
#
# send dhcp-client-identifier "c32423-a"

#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#supersede domain-name "fugue.com home.vix.com";
prepend domain-name-servers 208.67.222.222, 208.67.220.220;

send dhcp-lease-time 3600;
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, host-name, nis-domain,
	nis-servers, ntp-servers, netbios-name-servers;
# We request above options, require only the IP configuration:
require subnet-mask;
# To enforce the availability of the dns server list, set to:
#require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;

# Default location of the dhclient-script. Note: Setting
# it in the config, disables the -sf command line option!
#script "/sbin/dhclient-script";

#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
__________________
Saluti
R
Reply With Quote
  #10 (permalink)  
Old 09-Jul-2009, 01:34
Camaleón
Guest
 
Posts: n/a
Default Re: Static DNS using NetwotkManager

roberto60 wrote:

> I'm sorry to be plain I cant find the keyword you pointed to me so I
> modified the
>
> prepend domain-name-servers


Restore the original line and just "add" the one I told you, so you get
something like this:

***
#prepend domain-name-servers 127.0.0.1;
supersede domain-name-servers 208.67.222.222, 208.67.220.220;
***

Then, restart the network service and test again.

Greetings,

--
Camaleón
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.2