[PATCH v2] samba-tool dns: Give a better error message when people get the server parameter wrong

Kai Blin kai at samba.org
Wed Nov 14 05:28:01 MST 2012

On 2012-11-14 13:01, Rowland Penny wrote:

Hi Rowland,

thanks for your input.

> Hi, Now I will be the first to acknowledge that I know nothing about
> writing software, but instead of writing a better error message,
> wouldn't it be better to fix the problem?

Sure. :)

> On my samba4 server (ipaddress, FQDN adserver.home.lan) all
> the following commands work & give the same information
> samba-tool dns serverinfo
> samba-tool dns serverinfo
> samba-tool dns serverinfo adserver
> samba-tool dns serverinfo adserver.home.lan
> The only command that fails is:
> samba-tool dns serverinfo localhost

I wasn't aware that the dcerpc bind string can be a hostname as well.
All I ever tried was localhost, and that never worked. :)
Thanks for the heads up.

> Wouldn't it be better to get localhost to work and print an error
> message along the lines of 'information not available for <what ever was
> given>, please check and retry' if the wrong server was given.

Sure. Someone with more clue about this DCE/RPC stuff, why doesn't
localhost work? :)


Kai Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20121114/584a843d/attachment.pgp>

More information about the samba-technical mailing list