RH9-problem with browsing Internet: domain names-errors, using IP-OK.
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.
RH9-problem with browsing Internet: domain names-errors, using IP-OK.
I'm new to Linux and I have a problem with browsing the Internet. I have RedHat 9 and I'm connected to the Internet through a router.
When I use domain names in Mozilla or Nautilus, I get errors. When I navigate using "direct" IP numbers, everything seems to be OK. Furthermore, I cannot ping sites by their names, although dig, host and nslookup return no errors.
My DNS is set to the same address I have set under Win XP on the same computer - and under Win name solving works fine.
(I have VIA VT86c100A Rhine-II PCI network card, if this information can help)
well, considering your resolv.conf looks fine, i'd say it could be either your local iptables rules or perhaps your dns resolver is bugging-out... you can check (and post) your iptables rules with:
Code:
iptables -L -v -n
as for your resolver possibly needing a bugfix update (it's a long-shot), the problem is that Red Hat 9 hasn't been supported/maintained in a LONG time... so i'm wondering if perhaps you are able to upgrade to a supported/mainitained distro - not so much cuz of this DNS issue, but for security and an overall better experience... in any case, i'm sure someone smarter than me will have some other suggestions for you, so hang in there...
I'm trying to learn basics of Linux on RH; I thought about switching to another distribution, but I want to deal with this DNS problem first - I've spent lots of time trying to fix it and I don't want to give up now.
I hope my iptables can help; I'm kind of confused and I don't really know what to do with the results.
okay, well, let's rule-out an iptables issue by using some super-simple rules... execute this script and see if it helps... this script basically just sets some sane policies, clears all your chains, and sets two known-good rules... make sure you check that the script executed properly by doing another "iptables -L -v -n" right after...
The simplish solution is to find out the DNS server your ISP uses, should be x.x.x.x where x = 1-254.
If you want to test if it works, try.
Code:
nameserver 192.168.2.1
to
nameserver 194.106.33.42
If it works, then find out your ISP's DNS server IP, and put it in the file instead of the one i gave you. It can be found in your router or on google.
hehe, glad you got it working, even though it's more of a work-around than a solution... not sure why you are experiencing this, perhaps it's an issue with the leases on your router or something... in any case, you could give your box a static IP configuration to achieve what you want... but if you truly want to leave it on DHCP but prevent resolv.conf from getting written to, then i'd imagine a quick and dirty way to achieve that is giving it read-only permissions like:
Code:
chmod 400 /etc/resolv.conf
keep in mind i haven't tested to see how well this works...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.