[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Debian Server hostname and Win 2003 DNS server



Hi all.
I have 2 new running Debian Etch :-) server into an (old)  Windows environment.
Servers work like a charm, but i am not able to ping them by hostname.
They are configured with a static ip address and have samba installed and working.
Any tips?
Thanks!
Regards
M

Hello,

I believe you are asking how to get your Debian boxes configured with the Windows DNS server so that you can ping by computer name from the Windows environment, correct?

Here is how I add the Debian system into the Windows DNS entry.

First I install dnsutils with apt-get.

Then I create a file. You can create it anywhere, but I prefer to create it here: /etc/dnsupdate.txt; I use DHCP and need to keep the file around in an easy to find location.

Add the following to that file and remember to change out the IP address (192.168.1.1) and the hostname (YourHostNameHere.YourDomainNameHere.com. <-Remember. The. ‘.’ At. The. End. !!. ).

update delete YourHostNameHere.YourDomainNameHere.com. A
update add YourHostNameHere.YourDomainNameHere.com. 86400 A 192.168.1.1
show
send
quit

Then run the following command:
nsupdate -v /etc/nsupdate.txt

You should see out put similar to this:

Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
YourHostNameHere.YourDomainNameHere.com. 0          ANY     A
YourHostNameHere.YourDomainNameHere.com. 86400 IN           A          192.168.1.1

 

Hope that helps. Have fun!

~Stack~


Reply to: