LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-09-2004, 05:32 AM   #1
Terrence Hinds
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 7

Rep: Reputation: 0
Help resolving names between a Redhat and a win 2003 host


Hello to all
Please help!I am new the Linux.I have set up a network with win2003 server and I am trying to integrate a rehat machine into to this lan.I am still in the primary phase.I have done a minimal configuration with Samba so far.The computers are seeing each other,but I can't get them to resolve names.When I ping with the hosts name to and from the linux box.I get "unknown host".(I can ping with no problem with IP addresses).In the Linux computer DNS entry is pointing at the win2003 server IP address.
Could someone be kind enough to please explain how it's down correctly.
Million thanks
Best regard
Terrence
 
Old 10-09-2004, 06:24 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
there is a file /etc/hosts where you can put the ipaddresses and names. this workes first, before a domain query is send (have a look at /etc/nsswitch.conf for the order - this would be "hosts: file" then "dns").
to specify a domain name server use the file /etc/resolv.conf. the domain in the "search" options will be added to a single (without .some.net) machine name. the nameserver line(s) will direct the query to a specific ip address (your ms box?) if it isn't in the hosts-file.
there are man pages to these files. read them too.

sl mritch.
 
Old 10-09-2004, 08:45 AM   #3
Terrence Hinds
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 7

Original Poster
Rep: Reputation: 0
Hello Mitch
A big thanks to you for your quick reply.I thought thought it was enough to direct the Linux box in its DNS tab to the Win2003 DNS server.Us stupid window users;-(( It's a whole different game LINUX.
Anyway the Linux box is resolving the name of the 2003 server.But I can't get the windows machine to resolve the name of the Linux box.
Thanks for directing me in the right direction :- "there are man pages to these files. read them too."
I now know where to start reading.Was really lost never thought it was done manually.
Thanks again
Best rergards
Terrence
 
Old 10-09-2004, 09:09 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
no mitch here ;-)

to get the ms machine resolve the linux box you need to edit a file in the windows directory. i know nothing about recent windows versions. us stupid linux users ;-)
afaik it's "hosts(.sam)" and/or"networks" and/or "lmhosts(.sam)" in the windows dir (but - win98 ..last i had).

for good reading have a look at www.tldp.org - there are a lot of useful documents ready to solve some common tasks.

sl mritch.
 
Old 10-09-2004, 01:55 PM   #5
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Consider setting up a Wins server, this way you don't have to update hosts file manual.
If Samba is running then these Windows boxes should be able to find the Linux box by hostname.

Last edited by Demonbane; 10-09-2004 at 01:57 PM.
 
Old 10-10-2004, 05:08 AM   #6
Terrence Hinds
LQ Newbie
 
Registered: Oct 2004
Distribution: Redhat
Posts: 7

Original Poster
Rep: Reputation: 0
Hello mritch
Sorry for that ;-(( Too many hours trouble-shooting.Really need to take a break.
Thanks Affero! For the additional tip will try that as well.Any I did manage to work around the windows problem by manually putting the IP address of the linux box in the win2003 DNS server.Looks like I am learning fast ;-))))
Million thanks
Terrence
PS.Linux is a real challenge I think I will like it.
 
  


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
resolving names through a router Y0jiMb0 Linux - Networking 4 11-15-2005 04:05 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
NetBIOS names not resolving Xhalman Linux - Networking 0 02-16-2004 02:38 PM
Resolving Local Non-FQDN Host Names fortezza Linux - Networking 2 02-14-2004 04:17 AM
Apache is resolving names to ip? danimaldaisy Linux - Networking 3 12-18-2002 12:54 AM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration