LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2004, 08:46 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,064
Blog Entries: 1

Rep: Reputation: 90
Question DNS related problem


Hello, guys.

I'm having DNS related problems with my applications (and it didn't happen before).

This is my /etc/resolve.conf file:
nameserver 127.0.0.1
nameserverhost

When I start my system, I'm not connected to the internet. I make connections through kppp. Once I log in to the internet, my /etc/resolv.conf file changes, reflecting my ISPs dns servers.

What I have noticed is that applications that were opened BEFORE I get connected, keep asking the "OLD" server (localhost) for domain names... and by the way, my box is not a dns server.... so, they don't work at all. I have to close them and restart them.

It happens with: setiathome, squid, korn, etc, etc, etc.

What I have noticed is that this message is printed on one console:
gethostbyname: Resource temporarily unavailable
not once, but many times.... i think it's related to setiathome, it's printed once per hour per setiathome process.

What do u think?

Would appreciate any help provided.

PS
Oh, I forgot to mention I use Mandrake 9.2 gpl version on a Dell Laptop.

Last edited by eantoranz; 03-31-2004 at 08:48 PM.
 
Old 03-31-2004, 09:29 PM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
Is there any reason why you do not have your ISP's dns in there instead of the 127.0.0.1? if you put all the names your machine is known by in your /etc/hosts then you would only need dns when you are on the net and your /etc/resolv.conf would not need to change and you programs would keep the right dns servers listed.
 
Old 04-01-2004, 12:47 AM   #3
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
well i do suggest you to put the primary and seconday DNS of your ISP in resolv.conf

and command the 127.0.0.1 entry

nameserver IP primary
nameserver IP secondary
 
Old 04-01-2004, 05:23 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,064
Blog Entries: 1

Original Poster
Rep: Reputation: 90
Well, guys... in this case we have a nearsight problem (from my side). The solution you provide certainly should have been seen by me.

I appreciate your help very much.
 
  


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
Some queries related to DNS(bind) coolamit78 Linux - Networking 1 12-19-2003 03:05 AM
DNS related question tusher Linux - Newbie 1 12-07-2003 01:03 PM
DNS related question tusher Linux - Networking 1 12-01-2003 09:15 AM
weird DNS related (?) issue bobcat Linux - Networking 1 06-10-2002 08:08 PM
question - DNS related rewt Linux - General 2 09-14-2001 10:19 PM


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