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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently assembled a new computer with both Windows 7 boot and Ubuntu 11.04 boot. For some reason, I can not resolve domain names at all on in Ubuntu while Windows 7 works just fine. I'm wondering if I have improperly configured my network settings. I am trying to configure this machine to have a static IP on my network of 192.168.1.3
The machine definitely has its network card installed properly and in Ubuntu I can access numeric ip addresses anywhere via browser or ssh. When I type in "google.com" in a browser I get an instant 'server not found' error page.
Anything that is described in my hosts file seems to work just fine.
I can ping my router which has a LAN IP of 192.168.1.1 just fine with no packet loss.
Here are the contents of /etc/network/interfaces:
iface lo inet loopback
iface eth0 inet static
If I type in nslookup commands or dig commands they just time out. Wondering what the story is here.
Also, I am unable to access this machine via ssh from any other machine on the network. Wondering what might be wrong. Any tips are greatly desired.
You're system must run dhcpcd in order to get a correct IP-configuration from the DHCP-server. If you configure for a static IP you must instead tell dhcpcd not to overwrite the nameserver-entry in /etc/resolv.conf. In order to achieve this, you'll have to insert a line
mh, if you have the file /etc/dhcpcd.conf (it maybe on another place in Ubuntu) you'll know that dhcpcd is installed. Note that every distribution installs a DHCP-client-daemon by default (there are others than dhcpcd) since without it DHCP will not work and most systems use DHCP at least while installation.
The answer to your question: if you have a dhcpcd.conf file, insert the line I described in my last post and just try it out.
Note also that if you restart the system and don't have the line "nohook resolv.conf" in your dhcpcd.conf file, dhcpcd will overwrite your nameserver again.