Networking Forums

Networking Forums > Computer Networking > Linux Networking > Register linux host with static IP dynamically in Windows DNS

Reply
Thread Tools Display Modes

Register linux host with static IP dynamically in Windows DNS

 
 
Daniel Alder
Guest
Posts: n/a

 
      11-11-2008, 10:40 AM
Hi

I have read many discussions about registering Linux hosts in a
windows environment, so that they can be found by DNS queries. Each of
them told to use a dhcp client. But I have a static IP.

I know it is possible: my windows machine also has static IP, is NOT
member of the Domain and still registered itself in DNS few days ago
when I changed its IP. Unfortunately i don't know which protocol it
used, but there is an option in Windows' network settings for
registering the host automatically.

Who knows which protocol it uses for this behavior and how to do the
same in linux?

I tries nsupdate but only get answers like "not allowed", "not
found", .. - but again, windows computers can do it..

Daniel Alder
 
Reply With Quote
 
 
 
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-11-2008, 02:22 PM
Daniel Alder <(E-Mail Removed)> writes:
>
> I have read many discussions about registering Linux hosts in a
> windows environment, so that they can be found by DNS queries. Each of
> them told to use a dhcp client. But I have a static IP.
>
> I know it is possible: my windows machine also has static IP, is NOT
> member of the Domain and still registered itself in DNS few days ago
> when I changed its IP. Unfortunately i don't know which protocol it
> used, but there is an option in Windows' network settings for
> registering the host automatically.
>
> Who knows which protocol it uses for this behavior and how to do the
> same in linux?
>
> I tries nsupdate but only get answers like "not allowed", "not
> found", .. - but again, windows computers can do it..


Answers from who or what? nsupdate should certainly be able to do it.

But why do you want to? I like the fact that all my computers' IP
addresses are maintained on a central server, and I don't need to mess
with anything on the individual hosts to do things like shuffle IP
addresses. You say "I have a static IP" -- well, from my perspective,
that's the problem you actually need to be fixing.

 
Reply With Quote
 
Wolfgang Draxinger
Guest
Posts: n/a

 
      11-12-2008, 10:38 AM
Daniel Alder wrote:

> Hi
>
> I have read many discussions about registering Linux hosts in a
> windows environment, so that they can be found by DNS queries.
> Each of them told to use a dhcp client. But I have a static IP.


You need DHCP to automatically assign IP, route and DNS
information. You easily can assign hosts fixed IP addresses by
DHCP, based on the interface's MAC address.

> I know it is possible: my windows machine also has static IP,
> is NOT member of the Domain and still registered itself in DNS
> few days ago when I changed its IP. Unfortunately i don't know
> which protocol it used, but there is an option in Windows'
> network settings for registering the host automatically.


What you're referring to is probably NetBIOS/WINS. This works
independently from DNS, but Windows (unfortunately) queries both
in the resolver. But it is _not_ DNS!

> Who knows which protocol it uses for this behavior and how to
> do the same in linux?


Run a DNS server, ideally together with a forwarding cache. And
make your Windows and Linux machines using that one.

> I tries nsupdate but only get answers like "not allowed", "not
> found", .. - but again, windows computers can do it..


Yes, because you're not allowed to update foreign DNS servers,
and also most DNS servers are configured not to accept nsupdate
(it's a security risk). Probably you've configured your ISP's
DNS caches as resolvers, which don't accept updates anyway.

Running your own DNS server is simple, if you use the right
program. I recommend using djbdns: It's easy to configure and
quite powerfull.
http://cr.yp.to/djbdns.html

You're probably interested in the following documents:

Forward non local DNS requests to your ISP's servers, but local
requests to the local DNS server:
http://cr.yp.to/djbdns/run-cache-x-home.html

Setting up the DNS server itself:
http://cr.yp.to/djbdns/run-server.html

And, if you don't have a fully qualified domain (FQD), how to
choose proper local names:
http://cr.yp.to/djbdns/dot-local.html

Note, that it's easy enough to get a FQD using a service like
DynDNS, you could for example register a DynDNS host called,
example.dyndns.org and internally treat that as subdomain; as
long as you don't need your local hostnames being resolved
externally, it's just fine. You're using the DynDNS to claim
some namespace.

Wolfgang Draxinger
--
E-Mail address works, Jabber: (E-Mail Removed), ICQ: 134682867

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing a IPv6 network with dynamically assigned static IPv6 addresses. Ashish Shukla Linux Networking 2 02-13-2007 02:59 PM
changing tcp window size dynamically for FTP on linux anuragmenon@gmail.com Linux Networking 1 09-06-2006 01:20 AM
How to keep a static IP and let DNS addresses be dynamically updated on Linksys WRT54GS ? for.fun@laposte.net Wireless Internet 15 08-26-2005 08:28 AM
Linux<->Windows connection using USB host-to-host cable =?iso-8859-2?Q?Rados=B3aw?= Grzanka Linux Networking 0 04-10-2004 03:23 PM
Linux host name visible to Windows boxes Gary N. Linux Networking 2 07-02-2003 01:37 AM



1 2 3 4 5 6 7 8 9 10 11