LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-06-2005, 11:55 AM   #1
Theoscion
LQ Newbie
 
Registered: Aug 2005
Location: Arizona, USA
Distribution: Fedora Core 4 / Gentoo
Posts: 14

Rep: Reputation: 0
Problem with internet and with software packages.


Ok, I pretty much a complete noob with linux. I decided to dual install it with my so i can learn it. I went with Fedora Core 4 x86_64 for my Athlon 64 using kernel version 2.6.11-1.1369_FC4

My first question. When i originally did the install, i selected to install everything, hoping to experiment with all of it. Now I am realizing that i don't want the server packages on there for now. I don't need them, as my windows OS hosts a simple server for the few extra tools I need, and the rest i have hosted elsewhere. So when i go in (using GNOME or KDE, as i don't know how using command line) to uninstall these packages, i get an error.
The error says:
Packages Not Found
The following packages could not be found on your system.
Installation cannot continue until they are installed.

Then it lists a list of everything i just unchecked!

What do i do? How can i get these server packages uninstalled?



My second question. If i goto a webpage or any server by IP, everything is perfect and works wonderful, fast like it should be etc etc etc. But when I try to access anything by a domain, be it a webpage, chat, ANYTHING, there is literally a 5 to 10 second delay where all it says is "Looking up " + whatever the domain name is. How can i make it so that there isn't this delay. I know it is a linux setting, and not a network setting, because the internet works fine when I am in windows, along with the other two computers hooked up to the router.
Would removing the server packages resolve that, as "DNS Name Server" is one of those packages?

I've already tried fiddling with /etc/nsswitch.conf and /etc/host.conf and network properties. I've am beyond lost and frustrated at the time i've spent trying to figure it out.



Please please help me if you can.

Forgive my noob-ness. lol

Last edited by Theoscion; 08-06-2005 at 12:16 PM.
 
Old 08-06-2005, 01:33 PM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
for the package because u are new to this so i suggest do reinstallation again and chose custome install chose all software except server option eg, ftp/webserver and try it again
u got nothing to lose with this way , even u can gain more knowledge

for the internet thing pls look at /etc/resolv.conf
add one line for any ur provider dns server eg. like this

[root@ap4 ~]$ nano -w /etc/resolv.conf

add nameserver 192.168.0.1 and save with control+x and see the look

[rou@ap4 ~]$ cat /etc/resolv.conf
nameserver 192.168.0.1
[rou@ap4 ~]$

note* that ip number 192.168.0.1 change to ur dns provider
so there u go for internet if all others correct then u should be able to surf
 
Old 08-06-2005, 06:34 PM   #3
Theoscion
LQ Newbie
 
Registered: Aug 2005
Location: Arizona, USA
Distribution: Fedora Core 4 / Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Ok, did the reinstall, successfully got the server stuff off the computer. Secondary question. If i reinstalled them later when I am ready for them, do u think i would have problems taking them back off again?


As for the internet issue. I'm not sure what i should be editing. My router IP is at 192.168.2.1 which connects to another router at 192.168.1.1 which then forwards to the internet. Here is the exact information in resolv.conf:

; generated by /sbin/dhclient-script
nameserver 192.168.1.1
nameserver 68.2.16.25
nameserver 68.6.16.30
search localdomain

The DHCP server from the router supplies the same exact information except that it doesn't say localdomain, it says ph.cox.net.

What do i do from here. I was hoping that reinstalling would clear this up, but it doesn't. And i don't think changing it to ph.cox.net will solve the problem, because i had already done that before i did the reinstall.

So what should i do.

thanks,
theo

Last edited by Theoscion; 08-06-2005 at 06:35 PM.
 
Old 08-06-2005, 07:11 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
With DHCP my /etc/resolv.conf looks like this -

search
nameserver 192.168.68.1


Now there is nothing wrong with having multiple DNS servers, but I am not sure about having 3 nameservers, then search localdomain. Unfortunately, under DHCP, you don't have the ability to set static DNS info, AFAIK. Just as a test, I would set yourself to a static IP on your local subnet, with the resolv.conf rewritten to read

search
nameserver 68.2.16.25
nameserver 68.6.16.30
nameserver 192.168.1.1

and see if that speeds up your resolution. You may also have a networking issue in having two 192.168 subnets. Computers on 192.168.2 can't directly communicate with 192.168.1, unless you do something funky with the subnet, like setting it to 255.255.251.0. If your 2nd router assigns 192.168.2 addresses, it knows how to reach 192.168.1, but devices behind it can't directly hit the local nameserver.

Peace,
JImBass
 
Old 08-09-2005, 07:31 AM   #5
Theoscion
LQ Newbie
 
Registered: Aug 2005
Location: Arizona, USA
Distribution: Fedora Core 4 / Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Well I got it working but not 100% to my satisfaction.

I brought up the Network Configuration window and brought up the properties for my eth0 connection. From there, I left "Automatically obtain IP Address settings with:" checked and left it set with DHCP. What I did differently here was UNCHECKED "Automatically obtain DNS information from provider." Leaving this unchecked, I learned made it so that it would not rewrite the resolv.conf file.

I then edited /etc/resolv.conf file to make it say this:
nameserver 68.2.16.25
nameserver 68.6.16.30
nameserver 192.168.1.1

This made it so that it searches my ISP nameservers first then my local network. I did not include a search. Now my internet is instant, and my local network works as well. And I do not take the chance of setting my computer to an IP address that is already in use were I to use the Assign Static IP Address option.

The only disadvantage is if my ISP DNS addresses were to ever change, it would not be automatic, I would have to manually adjust. So that sucks. But, unless there is another way to go about doing this, this worked.



Thank you so much. I know i will probably have more questions as I go.
 
Old 08-09-2005, 07:31 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That is not a major loss, or even a problem. There are 2 possibilities if your ISP changes DNS IPs -

1) if they gave you a static address, they have to publicize those changes so you would know about it (less likely)
2) Your ISP gives your cable modem a dhcp address and dns info. If you can't connect, just log into the router and see what the new addresses are. (likely case)

Yes that isn't aiutomated, but if that is too much work for you, you could code up a script to login to the router, check the dns info, and change yours if it finds a difference.

Peace,
Jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPM Software Packages dudeman41465 Linux - Software 4 11-20-2005 04:37 AM
Amigo software packages skruf_man Amigo 4 10-12-2004 04:58 PM
Software QA Packages mooreted Linux - Enterprise 0 06-13-2004 11:44 AM
Internet and LAN access is unstable-is this a hardware problem or a software problem? soren625 Linux - Networking 1 06-07-2004 07:43 AM
Slack and software/packages tarballed Slackware 7 06-06-2003 04:50 PM


All times are GMT -5. The time now is 10:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration