Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird host name / ip address lookup issue #1787

Closed
wyang007 opened this issue Sep 26, 2022 · 3 comments
Closed

Weird host name / ip address lookup issue #1787

wyang007 opened this issue Sep 26, 2022 · 3 comments
Assignees

Comments

@wyang007
Copy link
Member

I ran into a weird name lookup issue:

  1. I have a host 134.79.23.45.
  2. Its DNS name is sdfdtn005.slac.stanford.edu everywhere, except on the node itself.
  3. On the node, its hostname is also the above, but an name lookup of the ip address will give sdfdtn005.sdf.slac.stanford.edu (note the .sdf.)
  4. domain name .sdf.slac.stanford.edu is not known anywhere except on this host (and other nodes in SLAC's newest computing facility)
  5. Don't ask why 3) and 4). it is politics.

When xrootd starts, it somehow associate the IP address to sdfdtn005.sdf.slac.stanford.edu.

a) using xrootd client in 5.5.0, after TLS, the client (xrdfs) will try to reach to sdfdtn005.slac. So all works
b) using xrootd client in 5.4.x, after TLS, the client (xrdfs) will try to reach to sdfdtn005.sdf.slac... this will fail because domain .sdf.slac.stanford.edu is not known to the outside.

I worked around this issue by manipulating /etc/hosts so that the IP address is associated to sdfdtn005.slac.stanford.edu

why these different behavior between xrootd 5.5.0 and xroot 5.4.x ?
how to prevent xrootd from associating 134.79.23.45 to sdfdtn005.sdf.slac (especially since its host name is sdfdtn005.slac)

@xrootd-dev
Copy link

xrootd-dev commented Sep 26, 2022 via email

@abh3
Copy link
Member

abh3 commented Sep 28, 2022

I am about to close this issue chalking this up to improper registration of hosts in a subdomain. Specifically, IP address 134.79.23.45 is registered with two names in the sdf subnet: sdfdtn005.sdf.slac.stanford.edu and sdfdtn005.slac.stanford.edu. The reverse translation of the IP address only resolves to the name sfdtn005.sdf.slac.stanford.edu.

Now the same lookup outside of the subdomain the IP address is only attached to the host name sdfdtn005.slac.stanford.edu and host name sfdtn005.sdf.slac.stanford.edu is not accessible (i.e.not registered).

I would say this is incorrect as both names have the same IP address so there is no reason not to make the registration consistent across DNS servers.

@abh3 abh3 self-assigned this Sep 28, 2022
@abh3
Copy link
Member

abh3 commented Jan 30, 2023

I am closing this as no further information is forthcoming.

@abh3 abh3 closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants