LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-26-2005, 01:37 PM   #1
ThorRune
LQ Newbie
 
Registered: Jul 2005
Location: Norway, Nordland, Steigen, Breivika
Distribution: Mandrake Linux 10.1
Posts: 7

Rep: Reputation: 0
DNS and gateway


Hey. Where do i manually change DNS and Gateway of a network card? I tried with the GUI, but it crashes. I need it so i don't have to use Windows partition for browsing all the time
 
Old 08-26-2005, 01:43 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
edit /etc/resolv.conf and change it with your actual DNS server. The syntax is like "nameserver 1.2.3.4"

to add a default gateway, use "route", like "route add default gw 1.2.3.4". To view your actual routes, use "route -n"

Thus... are you sure your network card is correctly configurated?
 
Old 08-26-2005, 02:02 PM   #3
ThorRune
LQ Newbie
 
Registered: Jul 2005
Location: Norway, Nordland, Steigen, Breivika
Distribution: Mandrake Linux 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you. If i do that add defult gw command, will it stay like that after i reboot?
 
Old 08-26-2005, 02:19 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
No, it will vanish, you need to add it to a bootup script if you want this to be applied at boot. I don't really know about Mandrake script however... if you have a "rc.local" script somewhere, it could be a good place where to add it.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Blocked by gateway! Samhein Linux - Networking 4 11-28-2005 04:46 AM
How to see DNS ,GATEWAY etc.. tkmuthuvel Linux - Networking 1 09-12-2005 02:53 PM
Changing IP, DNS, Gateway, etc... Psykoral Mandriva 2 11-18-2003 10:32 AM
Gateway and DNS jayakrishnan Linux - Networking 5 07-05-2003 02:01 AM
cannot get dns behind linux gateway bibi Linux - Networking 4 12-20-2001 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration