<html><head></head><body>Brian Maddy wrote:<br>
<blockquote type="cite" cite="mid:002501c0f468$e5afbe50$0200a8c0@omeganualpha.org"><meta content="MSHTML 5.50.4611.1300" name="GENERATOR"><style></style><div><font face="Arial" size="2">Hello all! My name is Brian Maddy and I still 
consider myself somewhat new to linux.&nbsp; Anyways, I was hoping someone could 
help me with a little problem I'm having.&nbsp; I live in a house with about 20 
other people. &nbsp;I'm in charge of&nbsp;our DSL modem and&nbsp;firewall 
which&nbsp;is running RedHat linux (ver. 7.1,&nbsp;kernel 2.4).&nbsp; My friend 
helped me set up a caching only DNS and it's working great.&nbsp; Now I want to 
get dynamic DNS working on our internal network.&nbsp; DHCP is working fine by 
the way.</font></div><div>&nbsp;</div><div><font face="Arial" size="2">What I want to do is make it so I can lookup 
"mycomputer.mydomain.com" and get the&nbsp;IP of my computer from anywhere 
inside my house.&nbsp; Most people in the house are using windows.&nbsp; I only 
really want it to work with Debian linux (my computer) and Win2000 (I don't 
think the other versions of windows&nbsp;update the local DNS, and I don't 
really care about them).&nbsp; As an added problem, not everyone has their 
computer's domain set to our domain name.&nbsp; Many people have to have it set 
to something else for work or school and have to keep it that way.&nbsp; I would 
still like to be able to look up "theircomputer.mydomain.com" and get their IP 
in the house.</font></div><div>&nbsp;</div><div><font face="Arial" size="2">Two of the zones in my /etc/named.conf file are the 
following:</font></div><div>&nbsp;</div><div><font face="Arial" size="2">/etc/named.conf:</font></div><div><font face="Arial" size="2">...</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; zone "mydomain.com" 
{</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; type 
master;</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; file 
"internal.forward";</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; allow-update 
{192.168.0/24; };</font></div><div><font face="Arial" size="2">};</font></div><div>&nbsp;</div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; zone "0.168.192.in-addr.arpa" 
{</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; type 
master;</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; file 
"internal.reverse";</font></div><div><font face="Arial" size="2">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; allow-update 
{ 192.168.0/24; };</font></div><div><font face="Arial" size="2">};</font></div><div><font face="Arial" size="2">...</font></div><div>&nbsp;</div><div><font face="Arial" size="2">Now, the Win2K computers are updating the reverse 
lookups, but in kind of a strange way.&nbsp; They are adding lines to my 
"internal.reverse" file, but not exactly&nbsp;how I wanted them to.&nbsp; 
The&nbsp;lines that are added are set up so that when I do a lookup on 
192.168.0.x I get&nbsp;"computername.WORKdomain.com"&nbsp;and 
not&nbsp;"computername.MYdomain.com".&nbsp; I would like to know how to fix 
this, but I am more concerned with the forward lookup.&nbsp; The forward lookup 
is not being updated at all.&nbsp; I don't really see why either, the zones 
above are set up identically...weird.&nbsp; Perhaps Win2K only updates the 
reverse lookup?&nbsp; I don't know.&nbsp; I haven't even started working on 
getting my Debian linux computer to do the updates. That will come later 
though.</font></div><div>&nbsp;</div><div><font face="Arial" size="2">I have been able to find&nbsp;almost no information 
on the web for a situation like this.&nbsp; The only thing I find is about 
RFC2136 (which doesn't help me out with syntax) or is a perl script&nbsp;where 
you have to&nbsp;keep a file that tells the name of each computer and it's 
IP.&nbsp; I don't want to have a static file like that because we have people 
moving in and out all the time and I don't want to have to constantly maintain 
it.&nbsp; So does anyone know where I could find some more information on how to 
do this?&nbsp; Help would be greatly appreciated.&nbsp; :)</font></div><div>&nbsp;</div><div><font face="Arial" size="2">Thanks in advance!</font></div><div><font face="Arial" size="2">Brian Maddy</font></div><div><font face="Arial" size="2"><a href="mailto:Madd0057@tc.umn.edu">Madd0057@tc.umn.edu</a></font></div><div>&nbsp;</div><div><font face="Arial" size="2">PS:&nbsp; If I didn't supply enough information, 
just let me know what is needed and I'll send it right 
away.</font></div></blockquote>
  <tt>As long as the Win2K clients are set up in a different domain, the
auto-update of your forward lookup file will fail, since they are attemting
to update a domain for which your server has no table (or is not authoritative).&nbsp;
The reverses will work, as you note, but will resolve each of those clients
to WORKdomain since that's the domain they claim to belong to.<br>
  <br>
As a company I used to work for, we had a similar situation with roving users
during a merger - they wanted to remain in their own domain but be resolvable
on our network when in our offices.&nbsp; The solution we came up with was to
create our own dynamic DNS tables, by parsing the dhcp.leases file and using
dig to search the network for that machine's reported name.<br>
  <br>
Then it was just a matter of converting that information into named-friendly
data (which we did the lazy way; by writing it into a hosts-like file and
using h2n to convert it).<br>
  <br>
If I can dig up the scripts we used I'll send them along, if this sounds like a workable solution.<br>
  <br>
By the way - hello everyone!<br>
  <br>
--<br>
patrick<br>
  </tt><br>
</body></html>