How to randomize the source port used during DNS lookup?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I am trying to send multiple DNS queries serially using the dig utility on Ubuntu16.04. I have a file that contains the list of websites.
dig -f <file> +short
From tcpdump I see that dig is reusing the same source port for every dns request. How do I randomize the source port?

The man page for dig and other google search results say that dig randomizes source port by default. But I don't see that happening.
16.04 dns
add a comment |Â
up vote
0
down vote
favorite
I am trying to send multiple DNS queries serially using the dig utility on Ubuntu16.04. I have a file that contains the list of websites.
dig -f <file> +short
From tcpdump I see that dig is reusing the same source port for every dns request. How do I randomize the source port?

The man page for dig and other google search results say that dig randomizes source port by default. But I don't see that happening.
16.04 dns
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press thebutton to format it properly.
â Chai T. Rex
May 4 at 21:39
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to send multiple DNS queries serially using the dig utility on Ubuntu16.04. I have a file that contains the list of websites.
dig -f <file> +short
From tcpdump I see that dig is reusing the same source port for every dns request. How do I randomize the source port?

The man page for dig and other google search results say that dig randomizes source port by default. But I don't see that happening.
16.04 dns
I am trying to send multiple DNS queries serially using the dig utility on Ubuntu16.04. I have a file that contains the list of websites.
dig -f <file> +short
From tcpdump I see that dig is reusing the same source port for every dns request. How do I randomize the source port?

The man page for dig and other google search results say that dig randomizes source port by default. But I don't see that happening.
16.04 dns
asked May 4 at 19:34
Vinay Sheshadri
11113
11113
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press thebutton to format it properly.
â Chai T. Rex
May 4 at 21:39
add a comment |Â
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press thebutton to format it properly.
â Chai T. Rex
May 4 at 21:39
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press the
button to format it properly.â Chai T. Rex
May 4 at 21:39
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press the
button to format it properly.â Chai T. Rex
May 4 at 21:39
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1032118%2fhow-to-randomize-the-source-port-used-during-dns-lookup%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Please don't use screenshots for terminal output. Instead, paste the text into the question editor, select that text, and press the
button to format it properly.â Chai T. Rex
May 4 at 21:39