Dynamic DNS Updates (was Re: [JDEV] Custom messages/extensions)

Katz, Dov (Lists/Junk Mail) list at dovkatz.net
Fri Aug 2 18:54:19 CDT 2002


Hey,

I modified the JABBERD code in dnsrv.so  (srv_resolv.c) to allow 
subdomains on the fly, not with respect to dns, but if any jabberd is 
runnign my flavor of dnsrv, it will attempt to recursively resolve until 
there are no more prefixes to strip off....   The new code I produced 
basically, instead of looking up in dns, and otherwise returning error, 
it keeps trying to look up the domain, stripping another token from the 
front (strotk'd on the '.')... thatway i can have conference.myserver 
and toc.myserver

and any other jabber server with my dnsrv will attempt fake.real, until 
it resolves something...

So,
if oyu had the domain  this.is.cool.microsoft.com

jabberd trying to send messages to it would ask dnsrv what ip it needs 
to open a socket to, then recursively strip prefixes until it recognizes 
something, rather than just fail...

the only caveat is that only jabber servers you add this to can 
recognize them.

-d


Dave wrote:

>You have two primary options, DynDNS and updating the BIND configuration
>files (and then HUPping named).  The manual should provide you with all
>necessary information, but it's a pain in the anus to read.  Experiment
>around with the config files a bit, though, and you'll quickly discover
>what your script will need to do in order to create a new subdomain
>(or remove an existing one).
>
> - Dave
>
>
>ibernardlabs [Paul Alapatt] wrote:
>  
>
>>Hi Everyone,
>>
>>I have never ever done anything with the DNS and the funny thing is I am
>>in the middle of something that needs me to do something with it and
>>also really fast.
>>
>>I need to do :
>>
>>I need to make subdomains on the fly   like say the main server is
>>abc.com, then when a script runs it should be able to create
>><username>.abc.com
>>
>>Can someone please help me out, and please I have no clue to what one
>>needs to do here.
>>
>>Regards,
>>Paul Alapatt
>>
>>-----Original Message-----
>>From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org] On Behalf Of
>>Richard Dobson
>>Sent: 31 July 2002 15:42
>>To: jdev at jabber.org
>>Subject: Re: [JDEV] Custom messages/extensions
>>
>>
>>Hi Mark,
>>
>>Message is not really appropriate for what you want to use it for, IQ is
>>the place you should be putting your extensions, in messages you can
>>only add x elements into the message and you certainly shouldnt be
>>defining new message types.
>>
>>Richard
>>
>>----- Original Message -----
>>From: "Mark Derricutt" <mark at talios.com>
>>To: <jdev at jabber.org>
>>Sent: Wednesday, July 31, 2002 10:26 AM
>>Subject: [JDEV] Custom messages/extensions
>>
>>
>>    
>>
>>>Hiya, I'm currently working on a project that we're wanting to use 
>>>Jabber as our messaging layer between client and server applications.
>>>
>>>I envisage sending 4-5 special "messages" with our applicatoins data 
>>>back and forth, but I'm not sure exactlty -where- I should be putting 
>>>my
>>>      
>>>
>>payload
>>    
>>
>>>(in order to be a nice Jabber citizen).
>>>
>>>At the moment I'm plaing with just sending normal messages, which my 
>>>payload next after the body, in its own namespace, something like:
>>>
>>><message.......>
>>>  <body>This is a message</body>
>>>  <specialk xmlns="super:goodness">
>>>    <more data="here"/>
>>>  </specialk>
>>></message>
>>>
>>>Is this ok?  Or should be doing this inside an <iq/> element or 
>>>something?
>>>
>>>Are there any JEPs/HOW-TOs or docs on what should and shouldn't be 
>>>done, when extending stuff?  My manager wanted wanted to do something 
>>>with <message type="ourspecialmessagetype"></message>, but I wasn't 
>>>too sure about that either...
>>>
>>>Mark
>>>
>>>                                    -- \m/ --
>>>  "...if I seem super human I have been misunderstood." (c) Dream
>>>      
>>>
>>Theater
>>    
>>
>>>         mark at talios.com - ICQ: 1934853 JID: talios at myjabber.net
>>>
>>>_______________________________________________
>>>jdev mailing list
>>>jdev at jabber.org
>>>http://mailman.jabber.org/listinfo/jdev
>>>
>>>      
>>>
>>_______________________________________________
>>jdev mailing list
>>jdev at jabber.org
>>http://mailman.jabber.org/listinfo/jdev
>>
>>
>>_______________________________________________
>>jdev mailing list
>>jdev at jabber.org
>>http://mailman.jabber.org/listinfo/jdev
>>
>>    
>>
>
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev
>
>
>  
>





More information about the JDev mailing list