#106 Add host name resolve method on the server side
Closed: Fixed None Opened 13 years ago by dpal.

There should be a method to check if the host is resolvable. It will be used by the UI to make sure that the host being added is actually a host that exists.


Is this specifically for an AJAX call?

This could cause problems too because sometimes there is a lag between when a DNS is updated and the information is propgated.

Yes there are all sorts of the delays. It is for the case when you are adding a host or service manually. It is assumed that you do not know if the DNS entry was already added some time ago or not. If it was added recently you probably would not try to resolve or ignore if it gives you warnings because you know that there is a DNS propagation latency.

This is a very simple resolver. You really should pass in the FQDN of the host you want to resolve. It will add on the IPA default domain if you don't but it doesn't do any other fancy footwork.

master: 89d2280

For QE, this is just used so the UI can see if a hostname is in DNS or not, it doesn't do anything really clever on output:

ipa dns-resolve www.freeipa.org
-----------------------
Found 'www.freeipa.org.'

ipa dns-resolve unknown.freeipa.org
ipa: ERROR: Host 'unknown.freeipa.org.' not found

Metadata Update from @dpal:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.0 - 2010/09

7 years ago

Login to comment on this ticket.

Metadata