From 31f031b0d348afd1c343692eca4b496c4bf5d05d Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 6 Nov 2014 09:05:28 +0100 Subject: nft: don't resolve hostnames by default This patch changes the default behaviour of nft to not translate IP addresses to hostnames when printing rules if no options are passed. The options regarding translations after this patch are: show IP addresses numerically (default behaviour) -n show IP addresses numerically -nn show Internet services and uid/gid numerically -nnn show protocols numerically -N (--reversedns) translate IP addresses to names The idea is to avoid breaking existing scripts that most likely rely on '-n' to save the ruleset, so we reduce the impact of this patch and provide a default behaviour that doesn't generate network traffic when listing / saving the ruleset. Joint work with Pablo. Suggested-by: Patrick McHardy Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- doc/nft.xml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'doc/nft.xml') diff --git a/doc/nft.xml b/doc/nft.xml index cec5ef3b..e45a5936 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -101,9 +101,18 @@ vi:ts=4 sw=4 Numeric output: Addresses and other information that might need network traffic to resolve to symbolic names - are shown numerically. When used twice, internet services - and UIDs/GIDs are also shown numerically. When used thrice, - protocol numbers are also shown numerically. + are shown numerically (default behaviour). When used twice, + internet services are translated. When used twice, internet + services and UIDs/GIDs are also shown numerically. When used + three times, protocol numbers are also shown numerically. + + + + + + + + Translate IP addresses to DNS names. -- cgit v1.2.3