mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Display correct port number on set all and similar commands. RT352
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nslookup.c,v 1.53 2000/09/21 23:47:40 marka Exp $ */
|
/* $Id: nslookup.c,v 1.54 2000/09/22 17:14:24 mws Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -551,7 +551,7 @@ show_settings(isc_boolean_t full, isc_boolean_t serv_only) {
|
|||||||
while (srv != NULL) {
|
while (srv != NULL) {
|
||||||
result = isc_buffer_allocate(mctx, &b, MXNAME);
|
result = isc_buffer_allocate(mctx, &b, MXNAME);
|
||||||
check_result(result, "isc_buffer_allocate");
|
check_result(result, "isc_buffer_allocate");
|
||||||
get_address(srv->servername, 53, &sockaddr);
|
get_address(srv->servername, port, &sockaddr);
|
||||||
result = isc_sockaddr_totext(&sockaddr, b);
|
result = isc_sockaddr_totext(&sockaddr, b);
|
||||||
check_result(result, "isc_sockaddr_totext");
|
check_result(result, "isc_sockaddr_totext");
|
||||||
printf("Default server: %s\nAddress: %.*s\n",
|
printf("Default server: %s\nAddress: %.*s\n",
|
||||||
|
Reference in New Issue
Block a user