LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2006, 01:15 AM   #1
yashwantpinge
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
DNS failed


hello,

Since, when i ping the yahoo.com from command prompt it is given me the perfect detail about packets .

But with my program using gethostbyname, it is given me DNS failed.

anybody tell me what is a problem............?
 
Old 03-14-2006, 04:35 PM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
from what i see gethostbyname uses the normal dns stuff. the man page says it checks named then /etc/hosts..

maybe show some code?
 
  


Reply



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 lookup failed DropHit Linux - General 1 12-29-2007 03:25 AM
DNS problem rndc: connect failed connection refused error suchi Linux - Networking 14 05-27-2007 11:51 AM
DNS Problem - rndc: connect failed: connection refused krishvij Linux - Newbie 2 04-25-2005 07:40 AM
dns lookup failed s0393342 Linux - Networking 2 08-09-2004 07:59 AM
Help!! DNS failed, what is wrong on my setting? explorer1979 Linux - Networking 3 04-02-2004 12:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:43 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
Open Source Consulting | Domain Registration