LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   windows does not resolve linux hostname (http://www.linuxquestions.org/questions/linux-networking-3/windows-does-not-resolve-linux-hostname-182409/)

abrb220 05-17-2004 07:59 AM

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

onnyloh 05-17-2004 09:08 AM

are your using samba?

abrb220 05-17-2004 09:17 AM

No.
I do not want to share drives, so I do not think i need it.Could be wrong though.

Word.

carlmarshall 05-17-2004 09:48 AM

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.

abrb220 05-18-2004 02:18 AM

Ok.
I am going to install and configure Samba on one of the boxes.

Will update later.

muse 05-18-2004 02:45 AM

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.

abrb220 05-18-2004 04:11 AM

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.


All times are GMT -5. The time now is 02:23 AM.