<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Ask! &#187; Internet</title>
	<atom:link href="http://www.linuxask.com/topics/applications/internet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Tue, 05 May 2015 07:15:40 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>How to trace DNS from the root servers</title>
		<link>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers</link>
		<comments>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers#comments</comments>
		<pubDate>Sun, 16 Jun 2013 03:54:46 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4263</guid>
		<description><![CDATA[How to trace DNS from the root servers Answer: Use the command `dig`, e.g. dig +trace mit.edu ;; global options: +cmd . 19927 IN NS d.root-servers.net. . 19927 IN NS e.root-servers.net. . 19927 IN NS m.root-servers.net. . 19927 IN NS l.root-servers.net. . 19927 IN NS a.root-servers.net. . 19927 IN NS k.root-servers.net. . 19927 IN NS <a href='http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-domain-name-servers-for-a-domain" rel="bookmark" title="Show the Domain Name Servers for a domain">Show the Domain Name Servers for a domain </a></li>
<li><a href="http://www.linuxask.com/questions/why-cant-i-telnet-into-my-linux-box-as-root" rel="bookmark" title="Why can&#8217;t I telnet into my Linux box as root?">Why can&#8217;t I telnet into my Linux box as root? </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-run-a-root-command-on-linux" rel="bookmark" title="How do I run a root command on Linux?">How do I run a root command on Linux? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to trace DNS from the root servers</p>
<p><strong>Answer:</strong></p>
<p>Use the command `<strong>dig</strong>`, e.g.</p>
<pre><code>dig +trace mit.edu

;; global options: +cmd
.			19927	IN	NS	d.root-servers.net.
.			19927	IN	NS	e.root-servers.net.
.			19927	IN	NS	m.root-servers.net.
.			19927	IN	NS	l.root-servers.net.
.			19927	IN	NS	a.root-servers.net.
.			19927	IN	NS	k.root-servers.net.
.			19927	IN	NS	f.root-servers.net.
.			19927	IN	NS	j.root-servers.net.
.			19927	IN	NS	b.root-servers.net.
.			19927	IN	NS	h.root-servers.net.
.			19927	IN	NS	g.root-servers.net.
.			19927	IN	NS	i.root-servers.net.
.			19927	IN	NS	c.root-servers.net.
;; Received 228 bytes from 8.8.8.8#53(8.8.8.8) in 12 ms

edu.			172800	IN	NS	a.edu-servers.net.
edu.			172800	IN	NS	c.edu-servers.net.
edu.			172800	IN	NS	d.edu-servers.net.
edu.			172800	IN	NS	f.edu-servers.net.
edu.			172800	IN	NS	g.edu-servers.net.
edu.			172800	IN	NS	l.edu-servers.net.
;; Received 260 bytes from 199.7.83.42#53(199.7.83.42) in 223 ms

mit.edu.		172800	IN	NS	usw2.akam.net.
mit.edu.		172800	IN	NS	asia1.akam.net.
mit.edu.		172800	IN	NS	asia2.akam.net.
mit.edu.		172800	IN	NS	use2.akam.net.
mit.edu.		172800	IN	NS	ns1-37.akam.net.
mit.edu.		172800	IN	NS	ns1-173.akam.net.
mit.edu.		172800	IN	NS	eur5.akam.net.
mit.edu.		172800	IN	NS	use5.akam.net.
;; Received 404 bytes from 192.31.80.30#53(192.31.80.30) in 548 ms

mit.edu.		20	IN	A	23.46.134.151
;; Received 41 bytes from 63.150.131.81#53(63.150.131.81) in 4 ms
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-domain-name-servers-for-a-domain" rel="bookmark" title="Show the Domain Name Servers for a domain">Show the Domain Name Servers for a domain </a></li>
<li><a href="http://www.linuxask.com/questions/why-cant-i-telnet-into-my-linux-box-as-root" rel="bookmark" title="Why can&#8217;t I telnet into my Linux box as root?">Why can&#8217;t I telnet into my Linux box as root? </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-run-a-root-command-on-linux" rel="bookmark" title="How do I run a root command on Linux?">How do I run a root command on Linux? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diagnosing network connectivity with mtr</title>
		<link>http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr</link>
		<comments>http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr#comments</comments>
		<pubDate>Thu, 21 Feb 2013 07:14:07 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4191</guid>
		<description><![CDATA[Diagnosing network connectivity with mtr Answer: To check the network connectivity to a specific server, you can use the mtr command. e.g. # mtr --report google.com HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1. 106.187.33.2 0.0% 10 1.3 5.3 0.6 21.4 6.7 2. 124.215.199.121 0.0% 10 0.6 6.5 0.4 12.4 4.8 3. otejbb206.int-gw.kddi.ne.jp <a href='http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/network-connectivity-testing-using-ping-command" rel="bookmark" title="Network connectivity testing using ping command">Network connectivity testing using ping command </a></li>
<li><a href="http://www.linuxask.com/questions/network-sniffing-with-tcpflow" rel="bookmark" title="Network sniffing with tcpflow">Network sniffing with tcpflow </a></li>
<li><a href="http://www.linuxask.com/questions/traceroute-using-tcp" rel="bookmark" title="Traceroute using TCP">Traceroute using TCP </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Diagnosing network connectivity with mtr</p>
<p><strong>Answer:</strong></p>
<p>To check the network connectivity to a specific server, you can use the <strong>mtr</strong> command.</p>
<p>e.g.</p>
<pre><code># mtr --report google.com
HOST: localhost                   Loss%   Snt   Last   Avg  Best  Wrst StDev
  1. 106.187.33.2                  0.0%    10    1.3   5.3   0.6  21.4   6.7
  2. 124.215.199.121               0.0%    10    0.6   6.5   0.4  12.4   4.8
  3. otejbb206.int-gw.kddi.ne.jp   0.0%    10    2.1   3.7   2.1  12.5   3.3
  4. ix-ote210.int-gw.kddi.ne.jp   0.0%    10    2.1   6.4   2.1  15.2   4.5
  5. 203.181.102.94                0.0%    10    2.6   2.7   2.2   3.9   0.6
  6. 209.85.249.195                0.0%    10    3.2   5.3   2.3  22.8   6.6
  7. 64.233.175.0                  0.0%    10    7.0  13.5   6.8  49.8  13.7
  8. 64.233.174.0                  0.0%    10   20.0  12.7  11.1  20.0   3.0
  9. 216.239.43.145                0.0%    10   12.0  11.8  11.5  12.2   0.2
 10. kix01s01-in-f8.1e100.net      0.0%    10   11.2  11.4  11.1  11.9   0.3
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/network-connectivity-testing-using-ping-command" rel="bookmark" title="Network connectivity testing using ping command">Network connectivity testing using ping command </a></li>
<li><a href="http://www.linuxask.com/questions/network-sniffing-with-tcpflow" rel="bookmark" title="Network sniffing with tcpflow">Network sniffing with tcpflow </a></li>
<li><a href="http://www.linuxask.com/questions/traceroute-using-tcp" rel="bookmark" title="Traceroute using TCP">Traceroute using TCP </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to provide username and password when using curl?</title>
		<link>http://www.linuxask.com/questions/how-to-provide-username-and-password-when-using-curl</link>
		<comments>http://www.linuxask.com/questions/how-to-provide-username-and-password-when-using-curl#comments</comments>
		<pubDate>Wed, 09 Jan 2013 16:23:07 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4144</guid>
		<description><![CDATA[How to provide username and password when using curl? Answer: To provide username and password when curl a url, you should use the "-u" or "--user" argument e.g. # curl --user john:password http://www.example.com<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
<li><a href="http://www.linuxask.com/questions/setting-up-a-username-in-mercurial" rel="bookmark" title="Setting up a username in Mercurial">Setting up a username in Mercurial </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-header-using-curl" rel="bookmark" title="Show HTTP response header using curl">Show HTTP response header using curl </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to provide username and password when using curl?</p>
<p><strong>Answer:</strong></p>
<p>To provide username and password when <strong>curl</strong> a url, you should use the<strong> "-u"</strong> or <strong>"--user"</strong> argument</p>
<p>e.g. </p>
<p><code># curl --user john:password http://www.example.com</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
<li><a href="http://www.linuxask.com/questions/setting-up-a-username-in-mercurial" rel="bookmark" title="Setting up a username in Mercurial">Setting up a username in Mercurial </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-header-using-curl" rel="bookmark" title="Show HTTP response header using curl">Show HTTP response header using curl </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-provide-username-and-password-when-using-curl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modern way to show current IP address(es) in Linux</title>
		<link>http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux</link>
		<comments>http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux#comments</comments>
		<pubDate>Mon, 08 Oct 2012 16:17:51 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4036</guid>
		<description><![CDATA[Modern way to show current IP address(es) in Linux Answer: In the past we already showed that you can get the IP information using the command "ifconfig", actually the modern way to do the job is # ip a 1: lo: mtu 16436 qdisc noqueue state UNKNOWN .. 2: eth0: mtu 1500 qdisc pfifo_fast state <a href='http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-show-current-routing-table" rel="bookmark" title="How to show current routing table">How to show current routing table </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-ip-address-assigned-to-eth0-by-a-single-command" rel="bookmark" title="How to get the IP address assigned to eth0 by a single command">How to get the IP address assigned to eth0 by a single command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-take-downup-a-network-interface-in-linux" rel="bookmark" title="How to take down/up a network interface in Linux?">How to take down/up a network interface in Linux? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Modern way to show current IP address(es) in Linux</p>
<p><strong>Answer:</strong></p>
<p>In the <a href="http://www.linuxask.com/questions/what-is-the-command-to-display-the-current-tcpip-configuration">past</a> we already showed that you can get the IP information using the command "<strong>ifconfig</strong>", actually the modern way to do the job is</p>
<pre><code># ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
  ..

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:26:5e:3e:42:d2 brd ff:ff:ff:ff:ff:ff
 ..
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-show-current-routing-table" rel="bookmark" title="How to show current routing table">How to show current routing table </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-get-the-ip-address-assigned-to-eth0-by-a-single-command" rel="bookmark" title="How to get the IP address assigned to eth0 by a single command">How to get the IP address assigned to eth0 by a single command </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-take-downup-a-network-interface-in-linux" rel="bookmark" title="How to take down/up a network interface in Linux?">How to take down/up a network interface in Linux? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a static route using command</title>
		<link>http://www.linuxask.com/questions/how-to-add-a-static-route-using-command</link>
		<comments>http://www.linuxask.com/questions/how-to-add-a-static-route-using-command#comments</comments>
		<pubDate>Wed, 11 Jul 2012 08:14:51 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3909</guid>
		<description><![CDATA[How to add a static route using command Answer: To add a static route, you can use a simple command like: # sudo route add 192.168.15.0/24 192.168.1.1 The above command make all request to 192.168.15.0/24 (i.e. 192.168.15.1 to 192.168.15.254) route thru the gateway 192.168.1.1<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts" rel="bookmark" title="Why SSL cannot be used with name-based virtual hosts?">Why SSL cannot be used with name-based virtual hosts? </a></li>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to add a static route using command</p>
<p><strong>Answer:</strong></p>
<p>To add a static route, you can use a simple command like:</p>
<p><code># sudo route add 192.168.15.0/24 192.168.1.1</code></p>
<p>The above command make all request to <strong>192.168.15.0/24</strong> (i.e. 192.168.15.1 to 192.168.15.254) route thru the gateway <strong>192.168.1.1</strong></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/why-ssl-cannot-be-used-with-name-based-virtual-hosts" rel="bookmark" title="Why SSL cannot be used with name-based virtual hosts?">Why SSL cannot be used with name-based virtual hosts? </a></li>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-add-a-static-route-using-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to show current routing table</title>
		<link>http://www.linuxask.com/questions/how-to-show-current-routing-table</link>
		<comments>http://www.linuxask.com/questions/how-to-show-current-routing-table#comments</comments>
		<pubDate>Mon, 09 Jul 2012 08:12:05 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3906</guid>
		<description><![CDATA[How to show current routing table Answer: To show the current system's routing table, you can try: # sudo netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 102.147.87.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 102.147.45.1 0.0.0.0 UG 0 0 0 eth0 102.147.45.0 0.0.0.0 255.255.255.0 U 0 0 <a href='http://www.linuxask.com/questions/how-to-show-current-routing-table' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-system-arp-cache" rel="bookmark" title="Show the system ARP cache">Show the system ARP cache </a></li>
<li><a href="http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux" rel="bookmark" title="Modern way to show current IP address(es) in Linux">Modern way to show current IP address(es) in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/show-current-postfix-queue-listing" rel="bookmark" title="Show current Postfix queue listing">Show current Postfix queue listing </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to show current routing table</p>
<p><strong>Answer:</strong></p>
<p>To show the current system's routing table, you can try:</p>
<pre><code># sudo netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         102.147.87.1    0.0.0.0         UG        0 0          0 eth0
0.0.0.0         102.147.45.1    0.0.0.0         UG        0 0          0 eth0
102.147.45.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
102.147.87.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-system-arp-cache" rel="bookmark" title="Show the system ARP cache">Show the system ARP cache </a></li>
<li><a href="http://www.linuxask.com/questions/modern-way-to-show-current-ip-addresses-in-linux" rel="bookmark" title="Modern way to show current IP address(es) in Linux">Modern way to show current IP address(es) in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/show-current-postfix-queue-listing" rel="bookmark" title="Show current Postfix queue listing">Show current Postfix queue listing </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-show-current-routing-table/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network sniffing with tcpflow</title>
		<link>http://www.linuxask.com/questions/network-sniffing-with-tcpflow</link>
		<comments>http://www.linuxask.com/questions/network-sniffing-with-tcpflow#comments</comments>
		<pubDate>Thu, 21 Jun 2012 10:23:32 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3645</guid>
		<description><![CDATA[Network sniffing with tcpflow Answer: Wireshark is the De facto standard in network sniffing, but most of the time you might just want to analyse the content passing through your web browser or web server, then it is easy with tcpflow For example, to show your communication with google.com to console, you can use sudo <a href='http://www.linuxask.com/questions/network-sniffing-with-tcpflow' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr" rel="bookmark" title="Diagnosing network connectivity with mtr">Diagnosing network connectivity with mtr </a></li>
<li><a href="http://www.linuxask.com/questions/packet-sniffing-with-tcpdump" rel="bookmark" title="Packet sniffing with tcpdump">Packet sniffing with tcpdump </a></li>
<li><a href="http://www.linuxask.com/questions/network-connectivity-testing-using-ping-command" rel="bookmark" title="Network connectivity testing using ping command">Network connectivity testing using ping command </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Network sniffing with tcpflow</p>
<p><strong>Answer:</strong></p>
<p><a href="http://www.wireshark.org/">Wireshark</a> is the De facto standard in network sniffing, but most of the time you might just want to analyse the content passing through your web browser or web server, then it is easy with <strong>tcpflow</strong></p>
<p>For example, to show your communication with google.com to console, you can use</p>
<p><code>sudo tcpflow -c -i en0 src or dst host www.google.com </code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/diagnosing-network-connectivity-with-mtr" rel="bookmark" title="Diagnosing network connectivity with mtr">Diagnosing network connectivity with mtr </a></li>
<li><a href="http://www.linuxask.com/questions/packet-sniffing-with-tcpdump" rel="bookmark" title="Packet sniffing with tcpdump">Packet sniffing with tcpdump </a></li>
<li><a href="http://www.linuxask.com/questions/network-connectivity-testing-using-ping-command" rel="bookmark" title="Network connectivity testing using ping command">Network connectivity testing using ping command </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/network-sniffing-with-tcpflow/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get the hostname of a local machine using Java</title>
		<link>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2</link>
		<comments>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2#comments</comments>
		<pubDate>Wed, 29 Feb 2012 04:14:11 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3739</guid>
		<description><![CDATA[How to get the hostname of a local machine using Java Answer: The following codes illtsraeted how to get the hostname of the local machine using Java. import java.net.InetAddress; public class Test { public static void main(String[] args) { try { InetAddress addr = InetAddress.getLocalHost(); // Get hostname String hostName = addr.getHostName(); System.out.println(hostName); } catch <a href='http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-remote-hostname-using-nslookup" rel="bookmark" title="Check remote hostname using nslookup">Check remote hostname using nslookup </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to get the hostname of a local machine using Java</p>
<p><strong>Answer:</strong></p>
<p>The following codes illtsraeted how to get the hostname of the local machine using Java.</p>
<pre><code>import java.net.InetAddress;

public class Test {

    public static void main(String[] args) {

        try {
            InetAddress addr = InetAddress.getLocalHost();

            // Get hostname
            String hostName = addr.getHostName();

            System.out.println(hostName);

        } catch (Exception e) {}
    }
}
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/check-remote-hostname-using-nslookup" rel="bookmark" title="Check remote hostname using nslookup">Check remote hostname using nslookup </a></li>
<li><a href="http://www.linuxask.com/questions/changing-the-default-java-environment-in-ubuntu" rel="bookmark" title="Changing the default Java environment in Ubuntu">Changing the default Java environment in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-disable-ipv6-support-in-a-java-program" rel="bookmark" title="How to disable IPv6 support in a Java program">How to disable IPv6 support in a Java program </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-get-the-hostname-of-a-local-machine-using-java-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show current Postfix queue listing</title>
		<link>http://www.linuxask.com/questions/show-current-postfix-queue-listing</link>
		<comments>http://www.linuxask.com/questions/show-current-postfix-queue-listing#comments</comments>
		<pubDate>Thu, 08 Sep 2011 10:55:15 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3424</guid>
		<description><![CDATA[Show current Postfix queue listing Answer: To show the current Postfix queue, you can try the command "postqueue" # postqueue -p -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- BD7E2BF973 972 Sat Aug 27 08:57:54 no-reply@example.com (connect to alt4.gmail-smtp-in.l.google.com[209.85.143.27]:25: Connection timed out) johndoe@gmail.com<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/remove-all-queued-message-in-postfix" rel="bookmark" title="Remove all queued message in Postfix">Remove all queued message in Postfix </a></li>
<li><a href="http://www.linuxask.com/questions/debug-and-verify-postfix-configurations" rel="bookmark" title="Debug and verify Postfix configurations">Debug and verify Postfix configurations </a></li>
<li><a href="http://www.linuxask.com/questions/show-the-current-privileges-of-a-mysql-user" rel="bookmark" title="Show the current privileges of a MySQL user">Show the current privileges of a MySQL user </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Show current Postfix queue listing</p>
<p><strong>Answer:</strong></p>
<p>To show the current <strong>Postfix </strong>queue, you can try the command "<strong>postqueue</strong>"</p>
<pre><code># postqueue -p

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
BD7E2BF973      972 Sat Aug 27 08:57:54  no-reply@example.com
(connect to alt4.gmail-smtp-in.l.google.com[209.85.143.27]:25: Connection timed out)
                                         johndoe@gmail.com
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/remove-all-queued-message-in-postfix" rel="bookmark" title="Remove all queued message in Postfix">Remove all queued message in Postfix </a></li>
<li><a href="http://www.linuxask.com/questions/debug-and-verify-postfix-configurations" rel="bookmark" title="Debug and verify Postfix configurations">Debug and verify Postfix configurations </a></li>
<li><a href="http://www.linuxask.com/questions/show-the-current-privileges-of-a-mysql-user" rel="bookmark" title="Show the current privileges of a MySQL user">Show the current privileges of a MySQL user </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/show-current-postfix-queue-listing/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Post a file to a server using the Curl command</title>
		<link>http://www.linuxask.com/questions/post-a-file-to-a-server-using-the-curl-command</link>
		<comments>http://www.linuxask.com/questions/post-a-file-to-a-server-using-the-curl-command#comments</comments>
		<pubDate>Sun, 04 Sep 2011 10:42:49 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3439</guid>
		<description><![CDATA[Post a file to a server using the Curl command Answer: You can simulate a HTTP form post, with a file being uploaded to a remote server using the curl command. curl -F 'photo=@/upload/image.jpg' http://example.com/upload.php Assume the name of the form element of your upload is called "photo"<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-header-using-curl" rel="bookmark" title="Show HTTP response header using curl">Show HTTP response header using curl </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-simulate-curl-using-wget-command" rel="bookmark" title="How to simulate curl using wget command?">How to simulate curl using wget command? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Post a file to a server using the Curl command</p>
<p><strong>Answer:</strong></p>
<p>You can simulate a HTTP form post, with a file being uploaded to a remote server using the <strong>curl </strong>command.</p>
<pre><code>curl -F 'photo=@/upload/image.jpg' http://example.com/upload.php</code></pre>
<p>Assume the name of the form element of your upload is called "<strong>photo</strong>"</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-http-response-using-curl-command" rel="bookmark" title="Show HTTP response using curl command">Show HTTP response using curl command </a></li>
<li><a href="http://www.linuxask.com/questions/show-http-response-header-using-curl" rel="bookmark" title="Show HTTP response header using curl">Show HTTP response header using curl </a></li>
<li><a href="http://www.linuxask.com/questions/how-to-simulate-curl-using-wget-command" rel="bookmark" title="How to simulate curl using wget command?">How to simulate curl using wget command? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/post-a-file-to-a-server-using-the-curl-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
