How to get hostname recognized on Windows network

Issues related to configuring your network
Locked
shef
Posts: 2
Joined: 2009/04/24 19:31:58

How to get hostname recognized on Windows network

Post by shef » 2009/04/24 19:45:33

I've just set up a CentOS box on my windows network. It uses DHCP to get an IP address. The DHCP server on my network is on a Windows Small Business Server, which is basically Windows Server 2003.

The trouble is that windows boxes cannot reach the CentOS box by hostname. I can ping the CentOS box by IP address. The CentOS box can ping windows boxes by hostname, can surf the web fine.

The DHCP server indicates that there is an address lease for 192.168.16.11 for "madison.MyInternalDomain.local". ("madison" is the hostname). I cannot ping either "madison" or the full name.

I found a reference someplace that suggested that I should add a DHCP_HOSTNAME=madison entry to /etc/system/network, which I did just below the HOSTNAME= entry. Rebooted, but no luck.

How do I fix this?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

How to get hostname recognized on Windows network

Post by gerald_clark » 2009/04/24 19:54:40

Your DHCP server must update your DNS server.
See the documentation for your Windows servers.

jonaskellens
Posts: 49
Joined: 2009/03/20 16:33:09
Location: Ghent, Belgium

Re: How to get hostname recognized on Windows network

Post by jonaskellens » 2009/04/24 20:15:27

Or add manually an A-record and PTR-record in your DNS-server for "madison".

shef
Posts: 2
Joined: 2009/04/24 19:31:58

Re: How to get hostname recognized on Windows network

Post by shef » 2009/04/24 20:31:43

Thanks. Figured it out. The answer is here: http://support.microsoft.com/kb/816592

Scroll down to see:

Configure DNS dynamic updates on a Windows Server 2003-based DHCP server
To configure DNS dynamic update for a Windows Server 2003-based DHCP server, follow these steps:

1. Click Start, point to Administrative Tools, and then click DHCP.
2. Right-click the appropriate DHCP server or scope, and then click Properties.
3. Click DNS.
4. Click to select the Enable DNS dynamic updates according to the settings below check box to enable DNS dynamic update for clients that support dynamic update.

Note By default, this check box is selected.
5. To enable DNS dynamic update for DHCP clients that do not support it, click to select the Dynamically update DNS A and PTR records for DHCP clients that do not request for updates (for example, clients that are running Windows NT 4.0) check box.
6. Click OK.

GTA_doum
Posts: 8
Joined: 2016/07/14 08:59:24

Re: How to get hostname recognized on Windows network

Post by GTA_doum » 2017/10/13 14:02:27

Sorry to wake this old post, but I have the DNS issue, and the DHCP is not a Windows server, it is a router on a VPN site, and the DNS server is a datacenter in another subnet.
How to get CentOS to register itself in a Windows DNS server without having the same server being DHCP server?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to get hostname recognized on Windows network

Post by TrevorH » 2017/10/13 15:22:42

Please don't resurrect 8 year old threads for a different version of the distro. Post a new thread in the relevant forum - CentOS 5 is dead and in any case, so dissimilar to CentOS 7 that any "fix" for 5 is unlikely to be applicable to 7.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Locked