LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-21-2005, 12:40 AM   #1
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Rep: Reputation: 15
Problem with name resolving.


Hello all,
I am having a small network of about 2 linux machines and 3 windows machines. One of the LInux machine acts as a DHCP (ISC) server, Internet Router and DNS (tinydns from djbdns). I have setup the tinydns and it works fine. I have tested the linux machine(client) and am able to ping to all the local machines from the linux machine using ping host1.basic.net. But when I ping it from Windows XP, The following error occured:
Quote:
Ping request could not find host host1.basic.net. please check the name and try again
I know this problem is not a linux specific problem, but since tinydns is serving the name resolution I posted it here.
When I ran ipconfig/all in windows, it shows the IP address of the local nameserver. and I can ping to this nameserver using the IP Address.
Another weird problem is that I can access internet from the windows machines through the machine which runs nameserver, dhcp server and IP routing.

Have anyone faced this problem before?
any thoughts ??

regards
libregeek.
 
Old 11-21-2005, 01:13 AM   #2
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
In your windows machine, make the linux machine which has the tinydns as the name resolver.
 
Old 11-21-2005, 01:31 AM   #3
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Original Poster
Rep: Reputation: 15
The IP address of the nameserver is already in the windows machine. I can ping the nameserver from the windows machine also. But I can't ping it using hostname.
 
Old 11-21-2005, 01:46 AM   #4
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Modify C:\Windows\system32\drivers\etc\hosts file and add your mapping ipaddress/name mapping of your name resolver.
 
Old 11-21-2005, 01:50 AM   #5
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Original Poster
Rep: Reputation: 15
That's not what I require. If I add the hostnames to /etc/hosts then what is the use of a DNS ? It's very tedious to add each and every hostname/IP address to the /etc/hosts file. I wish to resolve the ip address using the dns server. It's possible to ping from linux machine? then why does this blunt windows don't respond?
 
Old 11-21-2005, 01:55 AM   #6
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by sirkware
Modify C:\Windows\system32\drivers\etc\hosts file and add your mapping ipaddress/name mapping of your name resolver.
This should be done on your windows machine.
 
Old 11-21-2005, 02:02 AM   #7
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Original Poster
Rep: Reputation: 15
I think sirkware is not convinced abt my problem. I can access the internet thru the windows machine. the only problem is that i can't get the local names resolved. If it was the problem of /etc/hosts in windows then probably I shouldn't able to ping www.google.com. Luckily this is possible . But when i ping a local machine it doesn't works
 
Old 11-21-2005, 02:25 AM   #8
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
Sorry for the misunderstanding.

I believe your problem is regarding windows configuration. You may be using tinydns but its still a windows configuration problem. Sorry I cant help about that.
 
Old 11-22-2005, 04:45 AM   #9
libregeek
Member
 
Registered: Oct 2005
Posts: 47

Original Poster
Rep: Reputation: 15
My problem is solved.
The IP address of the windows machine is assigned through the DHCP server. I just tried to statically set an Ip address and point the namserver to it. Then it worked. So I dig some of the options of dhcpd.conf just played with the options for ddns-update-style. I changed ddns-update-style ad-hoc; to ddns-update-style interim; Then it worked. Now i am able to ping to all the hosts in the network.
Thanks to all of you who replied especially to sirkware.

regards
libregeek
 
Old 04-11-2006, 10:41 PM   #10
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
I have a hard time getting djbdns to do what i want, sounds like you made it -

Can you share your data.cdb ?
 
  


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
resolving problem (I think) caesius_01 Linux - Networking 1 07-28-2005 01:41 AM
Name resolving problem MicroSun Linux - Networking 1 01-27-2005 09:21 AM
Problem with resolving hosts p0rky Linux - Newbie 1 07-15-2004 04:51 AM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
Name resolving problem geoff-taylor@ho Linux - Networking 3 06-04-2002 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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