LinuxQuestions.org
Visit the LQ Articles and Editorials 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 05-17-2004, 07:59 AM   #1
abrb220
Member
 
Registered: Jul 2003
Location: Roodepoort South Africa
Distribution: Redhat / Suse
Posts: 39

Rep: Reputation: 15
windows does not resolve linux hostname


I have 3 linux boxes on a mostly windows machines lan.
We run dhcp. I have not got access to the dhcp machine.

From my linux boxes i can resolve all the windows machines by name.

However if i try to ping the linux boxes by name it does not resolve and
comes back with unknown host.

We get our dns info from the dhcp server.
How do I configure my linux boxes to tell the dhcp server to update the dns
server with their names?

Thanks
 
Old 05-17-2004, 09:08 AM   #2
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Rep: Reputation: 15
are your using samba?
 
Old 05-17-2004, 09:17 AM   #3
abrb220
Member
 
Registered: Jul 2003
Location: Roodepoort South Africa
Distribution: Redhat / Suse
Posts: 39

Original Poster
Rep: Reputation: 15
No.
I do not want to share drives, so I do not think i need it.Could be wrong though.

Word.
 
Old 05-17-2004, 09:48 AM   #4
carlmarshall
Member
 
Registered: Jan 2004
Location: North Yorkshire, UK
Distribution: Centos 5
Posts: 133

Rep: Reputation: 16
If your trying a line such as:

ping linux1.domain.com

then you'll need a DNS A record in the domain.com zone file for this host, otherwise it can't resolve the host name.

Windows uses an lmhosts file or a wins server or a broadcast to resolve a name to an IP address. To do this with Linux you need to install samba and configure this to act in the same manner.

Carl.
 
Old 05-18-2004, 02:18 AM   #5
abrb220
Member
 
Registered: Jul 2003
Location: Roodepoort South Africa
Distribution: Redhat / Suse
Posts: 39

Original Poster
Rep: Reputation: 15
Ok.
I am going to install and configure Samba on one of the boxes.

Will update later.
 
Old 05-18-2004, 02:45 AM   #6
muse
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
modify /etc/sysconfig/network-scripts/ifcfg-eth0:
DHCP_HOSTNAME=your_hostname

and restart the network service, let the dhcp server take a while to update dns record.

Last edited by muse; 05-18-2004 at 02:46 AM.
 
Old 05-18-2004, 04:11 AM   #7
abrb220
Member
 
Registered: Jul 2003
Location: Roodepoort South Africa
Distribution: Redhat / Suse
Posts: 39

Original Poster
Rep: Reputation: 15
Tried it, but it does not seem to work.
Also tried putting the following in /etc/dhclient-eth0.conf

send fqdn.fqdn "nazgul.ds1.ad.absa.co.za"
send fqdn.encoded off /on
send fqdn.server-update on / off

According to the man page for dhclient.conf this should let the dhcp know to update the dns. The interface comes up but the problem still persists.

in /var/log/messages I see :

nazgul dhclient: if IN A nazgul.ds1.ad.absa.co.za rrset doesn't exist add 3600 IN A nazgul.ds1.ad.absa.co.za 10.4.38.95 add 3600 IN TXT nazgul.ds1.ad.absa.co.za "00b58c3399805572d04df4e41b326777bc": ran out of space

So it looks like its trying to update but something is going wrong.
 
  


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
Unable to resolve hostname adirock2 Linux - Networking 14 07-06-2005 02:08 AM
Want Numeric IP of Web Server to resolve to hostname cyrusc Linux - Newbie 2 03-19-2005 02:54 PM
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 07:37 AM
linux can't resolve hostname from another linux box bricox Linux - Networking 4 07-07-2004 07:24 AM
Cannot resolve hostname problem for IglooFTP smc_one Linux - Networking 0 08-18-2003 10:33 AM


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