Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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've just installed a network card on my system to connect my Ethernet ADSL Modem to get out on the net.
I configured the IP address and subnet mask using ifconfig eth0 inet IPAddress netmask NETMaskAddress and it works fine.
My problem is that when I type a URL in firefox, it says it cannot find the site but if I type in the IP Address for that site, then it takes me straight to the page and opens it up without a problem.
Likewise, I cannot ping a URL (host unreachable) but I can ping it fine if I use the IP Address instead.
My guess is that it's a problem with my DNS settings on linux but I don;t really know where to look, what to look for and what to do wo make it so that it resolves URLs as well as IP addresses.
If you set your machine to obtain ip address automatically from your ISP, it should get the dns info also. If you put the address in manually, you may have to put the ISP dns servers in /etc/resolv.conf .
You can use system-config-network to have a visual aid.
Could you post me a copy of your resolv.conf file so i have a example of what it looks like (Im in the office at the moment and my machine is at home, so I'll have a look later when I get home, I need to fix grub first cos I messed up with my pc this morning and it won;t even boot up anymore! lol.
The other thing is.... when i use firefox to log into my Ethernet ADSL Router to configure the login name and password, I can access the web page by using the IP address of the modem: 192.168.1.1 but it says it cannot find it if I use it's name: voyager.home
Will putting the DNS address of my ISP resolve that considering Im not even going out on the net, I'm just going from eth0 to my modem and they both are linked by a cat5 cable?
Will putting the DNS address of my ISP resolve that considering Im not even going out on the net
Your ISP dns servers have no knowledge of your local network. If you want to resolve names locally, you will need to setup your own dns server or put the hostnames into the /etc/hosts file.
I'm using my own server locally and using the ISP servers as forwarders.
Your /etc/resolv.conf may look something like this ( use the correct ip numbers )
nameserver 123.123.123.1
Here is mine.
; generated by /sbin/dhclient-script
search mydomain.com
nameserver 192.168.0.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.