How to set a different DNS Address [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

How to set a different DNS Address [Solved]

Postby BillB0B » Wed Jul 18, 2007 23:31

On my setup the network connect but does find the DNS that I use. How do I change the network so it will connect to my main DNS and a alterntive DNS?
Thanks
BillB0B
Baby Hen
 
Posts: 2
Joined: Wed Jul 18, 2007 23:19

Postby WarraWarra » Wed Jul 18, 2007 23:59

As root in terminal
net-setup
and follow the options then once complete
ifconfig.

If this does not do it the
nano -w /etc/resolv.conf

Should be "nameserver 112.233.344.455" or similar and replace with yours.
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Postby BillB0B » Thu Jul 19, 2007 12:59

WarraWarra wrote:As root in terminal
net-setup
and follow the options then once complete
ifconfig.

If this does not do it the
nano -w /etc/resolv.conf

Should be "nameserver 112.233.344.455" or similar and replace with yours.


Thanks for your Help.
BillB0B
Baby Hen
 
Posts: 2
Joined: Wed Jul 18, 2007 23:19

Postby pleo » Fri Jul 20, 2007 11:57

I hate to steal a thread, but this seemed a good place to ask and as the previous question had been satisfactorily answered I thought that it wouldn't be a big deal.

I have already set up my DNS as noted above, however it would appear that NetworkManager is rewriting it on either boot or shutdown (I'm guessing boot) and as a consequence my DNS information is no longer present in resolv.conf and so needs to be manually added every time when I restart. I was wondering if there was a way to stop this from happening short of writing a script to automate the re=writing of resolv.conf
pleo
Baby Hen
 
Posts: 1
Joined: Fri Jul 20, 2007 11:44
Location: ecx

Postby gazal » Fri Jul 20, 2007 12:12

http://www.sabayonlinux.org/forum/viewt ... sc&start=0

italian,

I have the same problem, but for me it does not work.

It seems a main bug in this distro.
Image
Commenti liberi/form facoltativo -- IE incompatibile !
User avatar
gazal
Advanced Hen
 
Posts: 244
Joined: Sat Jul 14, 2007 10:02
Location: HiVi

Postby WarraWarra » Fri Jul 20, 2007 19:15

pleo wrote:I hate to steal a thread, but this seemed a good place to ask and as the previous question had been satisfactorily answered I thought that it wouldn't be a big deal.

I have already set up my DNS as noted above, however it would appear that NetworkManager is rewriting it on either boot or shutdown (I'm guessing boot) and as a consequence my DNS information is no longer present in resolv.conf and so needs to be manually added every time when I restart. I was wondering if there was a way to stop this from happening short of writing a script to automate the re=writing of resolv.conf


Only answer i have found so far is to not use knetworkmanager , might have to use it's options and set to not start at login.
If using eth0 / lan cat5e cable connection.

Make sure the lan or wifi loads at boot time.
" rc-update add net.eth0 default "
or
" rc-update add net.wlan0 default "

For wireless if using ndiswrapper module you also need to load it at boot time.
" rc-update add ndiswrapper default "

You can check what is loading at boot with this nice tool if installed.
" eselect "
" eselect rc list "

Using the gentoo link it should help you understand or figure out if something is missing.
http://www.gentoo.org/doc/en/handbook/h ... art1_chap3
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Postby gazal » Sun Jul 22, 2007 2:15

Image
Commenti liberi/form facoltativo -- IE incompatibile !
User avatar
gazal
Advanced Hen
 
Posts: 244
Joined: Sat Jul 14, 2007 10:02
Location: HiVi

Postby tuxp » Wed Aug 08, 2007 4:42


Could someone please translate? I have the same problem.
tuxp
Baby Hen
 
Posts: 1
Joined: Wed Aug 08, 2007 4:20

Postby gazal » Wed Aug 08, 2007 10:36

tuxp wrote:

Could someone please translate? I have the same problem.



$ killall NetworkManager
$ rc-update del NetworkManager
$ ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
$ rc-update add net.eth0 default
$ gedit /etc/resolv.conf (e aggiungi la riga)
$ emerge -c knetworkmanager


riavvia... oppure dai: REBOOT or GIVE:
$ dhcpcd eth0
$ /etc/init.d/net.eth0 start
[/quote]

Not much need to translate ....

But in 3.4 i had not this problem.
User avatar
gazal
Advanced Hen
 
Posts: 244
Joined: Sat Jul 14, 2007 10:02
Location: HiVi


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 2 guests