Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I instaled linux on my second computer in my home, it works in LAN but when im trying simply acces internet it cant resolve domain names. Ssh and things like FTP works.
I have internet via ADSL modem, i have external router installed and oter computers are connected via network cards with RJ45 cables. Router ip is 10.0.0.2 and this ip i typed as DNS server in Windows XP and everything works there, but i typed in linux /etc/resolv.conf line:
nameserver 10.0.0.2
and this does nothing
im really pissed cos in windows it simply works and on linux not
Can you ping 10.0.0.2 from the linux machine? Double-check /etc/resolv.conf to make sure that the nameserver is still listed - some programs overwrite the file. Check firewalls to make sure that DNS is allowed through (UDP port 53). Check also that you can ping the linux box from your DNS server.
Maybe your IP configuration is screwed up, since 10.0.0.2 should not be interpreted as a broadcast IP address. Can you post the results of "/sbin/ifconfig -a" and "netstat -rn" as run on your system?
Dont know if that mater, but my switch in "Factory Default" settings was configured to be 10.0.0.2 so i didnt changed it. As i said, i have winxp that works ok with this
You have 10.0.0.2 set as the interface's broadcast address, which is almost certainly incorrect unless you're using some really wacko network gear -- the correct broadcast for your subnet would be 10.0.0.255 (all bits beyond the subnet mask set to 1). You can change it with:
/sbin/ifconfig eth0 boadcast 10.0.0.255
and it should start working again. You'll probably also need to change it in whatever network setup scripts set the interface at boot. To tell you how to do that, we need to know what distro you are using.
[edit]
Oh, you'll also need to set your gateway, as it does not appear to be set. You can set it with
route set default gatway <IP of gateway>
again you'll need to modify the setup files to make it permanent.
THANK YOU!
This works, DNS working and i have internet access on linux.
Im using xebian/debian linux instaled on xbox console, xebian is 1.1.3 version.
Ive already find out place where to insert startup scripts, its /etc/init.d/bootmisc.sh file, i dont know if its best place though, but working.
my network settings are now:
xebian:/# iconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.0.0.255
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.