Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

lexical function to provide fully qualified domain name ?

SOLVED
Go to solution
john Dite
Frequent Advisor

lexical function to provide fully qualified domain name ?

I haven't got the latest OpenVMS Version to check, but is there anything planned as far as providing an additional arguement to provide the TCPIP_FULLNAME similar to the existing arguement DECNET_FULLNAME for the F$GETSYI lexical function?
13 REPLIES
Volker Halle
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

John,

I can't see anything like this in E8.2

How about using

$ x=f$trnlnm("TCPIP$INET_HOST")+"."+f$trnlnm("TCPIP$INET_DOMAIN")
$ sho sym x
X = "axpvms.invenate.local"

Volker
Kris Clippeleyr
Honored Contributor

Re: lexical function to provide fully qualified domain name ?


John,

Just looked at my notes of the TUD. Nothing Guy Peleg said points in that direction.
But couldn't you just translate the logical names TCPIP$INET_HOST and TCPIP$INET_DOMAIN and glue them together?

Greetz,

Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
john Dite
Frequent Advisor

Re: lexical function to provide fully qualified domain name ?

Hi Volker,

Speedy is your second name! ;-)

Thanks for the reminder. But it would still be nice to have equivalent Lexical functions that give you the info that gethostbyname and gethostbyaddr do in the context of a program.

Jan van den Ende
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

Yes, why did nobody bring this up earlier?

and the previous entries add up nicely to a friendly request to Guy!

John, your original question was for F$GETSYI to have TCPIP_FULLNAME, as an argument.
On your later entry you name "gethostbyname" and "gethostbyaddr" as the standard functions in higher languages.
I suppose the latter two have some more value than the first, but maybe if one is done, it is not very much more complex to do all?
.. and I would suggest an extension: if a node has multiple addresses (and probably associated names) would it then be possible to set up a context to scan over all values?
(say, in the spirit of F$SEARCH).

Maybe you can leave this thread collect other ideas for about a week, and then mail the URL to Guy?

Proost.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Uwe Zessin
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

Please remember that a TCP/IP host can have multiple IP adresses and multiple names. There is no easy 1:1 mapping as in DECnet.
.
Jan van den Ende
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

Uwe,

yes, and that is why I was suggesting the context-construct!

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Uwe Zessin
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

My appologies Jan - I have missed it.

But what sources would you include?
- local hosts database
- DNS server
-- how do you deal with round-robin and load balancers?
.
Jan van den Ende
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

Uwe,

(just thinking with my keyboard now)

- I guess the context construct by default would scan through ALL.

- by analogy with f$getjpi and f$getqui, the context range could be modified by f$context.

- maybe, as an analogy to f$getjpi(x,"rightslist"), it should also be possible to have ALL values at once in a string (to be able to check any presence). With the new string length limitations that will probably more feasable than at the old limit.

- or, enabling reverse lookup, return False or True for a name-address combination.

---- of course, I would gladly retract these for any better ideas!!


Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Antoniov.
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

I'm with Jan;
a lexical function with context like f$getqui may be usefull.

Antonio Vigliotti
Antonio Maria Vigliotti
Willem Grooters
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

agreed have this system info suggestion, but there is a drawback. What about the fact a system can have multiple NICs - each configured with it's own IP address and, potentially, it's own name? Even on one address there can be multiple names - and making matters even more complicated, if you're hosting different websites (apache's 'virtual hosts') you may have multiple names on ONE address ("CNAME" in DNS but this is no obligation!)
You may have to end up with running down a list, like F$PID or F$SEARCH.
Willem Grooters
OpenVMS Developer & System Manager
Jan van den Ende
Honored Contributor

Re: lexical function to provide fully qualified domain name ?

C'mon Willem,

read the whole thread!

That is exactly what most of the discussion was about!

Proost.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Guy Peleg
Respected Contributor
Solution

Re: lexical function to provide fully qualified domain name ?

I agree that adding this functionality will
be useful. I have filed an internal problem
report to track this request. I hope to be
able to implement it for the next version
(Post V8.2)

Guy
john Dite
Frequent Advisor

Re: lexical function to provide fully qualified domain name ?

Great Guy!