LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2004, 10:10 PM   #1
craigl
Member
 
Registered: Jan 2004
Distribution: PCLinuxOS .93, Puppy
Posts: 82

Rep: Reputation: 15
Do I have a DNS problem?


Hope somebody can help this Newbie............
I think I have a DNS issue but I'm stumped. I have gotten this far:
I can ping an address but not a name (www.linuxquestions.org doesn't
work but 64.179.4.146 does). I connect at 45,333 which is all I've ever
connected with any dialup in my home.
My question is how do I enter a DNS address? I thought it was automatic
with my ISP? On my XP machine, there is checked to "obtain DNS server
address automatically". Thanks to all.
 
Old 01-22-2004, 12:34 AM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Try running netconfig as root in a terminal. It should ask you for all kinds of information. After you're done, it should work. If not, google around for DNS stuff and check some of the sources in my sig. There will be some good help in there.
 
Old 01-22-2004, 12:42 AM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
You'll need to create/add /etc/resolv.conf

/etc/resolve.conf is the file that tells your Linux system where to look for the DNS server at.

'man resolv.conf' should give some more details, but basically you need a file that looks like this:

myisp.net
###.###.###.###
###.###.###.###

(obviously the #'s are your dns #'s from your ISP. Some places don't like to give them out, but threatening to move to another service usually does the trick.)

Sadly, it's three little lines that cause so many headaches. Hope this helps.

edit: I've been forgetting this all night...you need to be root to do this.

Last edited by scott_R; 01-22-2004 at 12:43 AM.
 
Old 01-22-2004, 02:39 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Scott_R is right. However, in your /etc/resolve.conf file...put in your DNS servers in this way (1st = higher priority)

nameserver <ip goes here>
nameserver <ip goes here>

-twantrd
 
Old 01-22-2004, 09:12 AM   #5
craigl
Member
 
Registered: Jan 2004
Distribution: PCLinuxOS .93, Puppy
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks everyone. I checked resolv.conf. There are 2 addresses in there.
They are xxx.xx.xx.2 and xxx.x.xx.3. Under KPPP statistics, the remote
address has xxx.xx.xx.4. If I ping the .4, works great. Is this remote address in KPPP staistics my DNS server address? Can there be more than 2 entries in the resolv.conf? I edited resolv.conf and put the .4 address
first, but still no luck. I will try netconf tonight. Thanks for the help. I want
to learn enough to help somebody else out!
 
Old 01-22-2004, 10:34 AM   #6
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
scott_R was definitely right as twantrd pointed out. It's been so long since I've had to mess with my resolv.conf that I completely forgot about it.

If your netconfig doesn't work. Call up your ISP and ask for the DNS names. If they won't provide it, tell them you need it. If they say they don't know, ask to speak to someone who does know. If they say they don't support Linux, tell them you'll find an ISP who does and you'll be taking your business there. They should give you the info. If not, and you don't feel like switching ISPs, you can go to

www.whatismyip.com

to get your IP address, then in a terminal, do

whois <youriphere>

The domain name search tool. Because the IP is given to you by your ISP, technically it belongs to the ISP. So, you should get the DNS of the ISP this way. Hopefully this works.

Last edited by Texicle; 01-22-2004 at 04:55 PM.
 
Old 01-22-2004, 04:19 PM   #7
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Or if your running a windows machine that does have internet connection at your place...do 'ipconfig /all' and look at the ip addresses in the DNS section. Then put those ip address in your /etc/resolve.conf

-twantrd
 
Old 01-22-2004, 11:40 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If those dns servers are valid maybe you have them blocked with a firewall.

Last edited by DavidPhillips; 01-23-2004 at 10:06 PM.
 
Old 01-23-2004, 02:09 AM   #9
.nyteshyft
Member
 
Registered: Jan 2004
Location: Melbourne, Australia
Distribution: Mandrake 9.1
Posts: 48

Rep: Reputation: 15
http://www.linuxquestions.org/questi...hreadid=137695
 
Old 01-25-2004, 02:41 PM   #10
craigl
Member
 
Registered: Jan 2004
Distribution: PCLinuxOS .93, Puppy
Posts: 82

Original Poster
Rep: Reputation: 15
Thnks, guys. I give up for now. All I've gotten done is sit here at this computer,
ignoring my family night after night, screwing with this thing till sometimes 2AM,
going to work as a zombie.....all just because I want to get on the net with my
Debian, which I upgraded to 2.4.16. I have done everything I could on any post and have checked everything and still I can only "connect at 45,333" but I can't
surf the net. I have noticed that other people have had the same problem and their posts come out at a dead end. I have checked everything anybody even hinted at checking, so for now I will wait maybe 6 more months and get a fresher release of my Debian distro and try again. I appreciate this forum and all the time everyone has spent trying to help me.
 
Old 01-28-2004, 06:55 PM   #11
ddstyles
LQ Newbie
 
Registered: Nov 2001
Location: Auckland NZ
Distribution: Linux Mint
Posts: 18

Rep: Reputation: 0
i'm getting same symtoms from a rh 9 release that used to work, and now only starts dns lookups after a couple of minutes or a reboot - i'll try the netconfig and look at shutting down my apache site i'm hosting internally, so that netstat -nr looks cleaner when on-line. if it works i'll definitly post back!!!
 
Old 01-29-2004, 01:41 PM   #12
ddstyles
LQ Newbie
 
Registered: Nov 2001
Location: Auckland NZ
Distribution: Linux Mint
Posts: 18

Rep: Reputation: 0
i checked the resolv.conf and noticed i had a domain entry for another server (not my isp) i removed this, and nslookup seems a bit more reliable now. my route or netstat -nr command shows up a wierd entry which i'm trying to remove - and can't. hopefully this will help....
 
  


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
DNS problem. Please help! auroratrading Linux - Networking 1 04-05-2005 02:14 AM
problem with DNS bglad Linux - Networking 9 10-20-2003 05:39 AM
Possible DNS problem? JimBass Linux - Newbie 8 10-03-2003 10:23 PM
DNS problem with RH 8.0 datamisc Linux - Newbie 2 12-20-2002 12:37 PM
DNS problem Cubiq Linux - Networking 12 09-06-2002 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:25 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