Automated merge with file:///cygdrive/e/srv/hg/admin-doc
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 24 Mar 2010 21:01:03 +0200
changeset 358 35f118ae3838
parent 354 481845507d3d (diff)
parent 357 5a5b41d76f03 (current diff)
child 359 87536cbea3f3
child 364 69a8035a54b8
Automated merge with file:///cygdrive/e/srv/hg/admin-doc
--- a/gcc.rst	Wed Mar 24 00:37:21 2010 +0200
+++ b/gcc.rst	Wed Mar 24 21:01:03 2010 +0200
@@ -36,3 +36,7 @@
 or
 
   $ gcc -Wl,-Map=file.map <opts> <files>
+
+* Predefined macros.
+
+  $ gcc -arch ppc -dM -E - < /dev/null | sort
--- a/net.rst	Wed Mar 24 00:37:21 2010 +0200
+++ b/net.rst	Wed Mar 24 21:01:03 2010 +0200
@@ -6,6 +6,34 @@
 
 User - none, password - none, phone - '*99***1#'.
 
+* DNS to IP address.
+
+  $ nslookup example.com
+
+* IP to DNS address.
+
+  $ nslookup 192.168.1.1
+
+* NetBIOS to IP address.
+
+By nbtstat.exe command from MS you can print NetBIOS name cache with
+name-to-IP address mappings:
+
+  $ nbtstat -c
+
+* List of NetBIOS name.
+
+  $ nbtstat -r
+
+* List of open port.
+
+** Windows.
+
+  cmd> netstat        # with DNS name resolution, TCP only
+  cmd> netstat -n     # without name resolution, TCP only
+  cmd> netstat -a -n  # TCP and UDP
+  cmd> netstat -s     # show IP, ICMP, TCP, and UDP statistics.
+
 * How disable IPv6?
 
 ** Debian kernel 2.6/Ubuntu ("official" method)/Fedora Core.
@@ -47,3 +75,10 @@
 ** Firefox.
 
 See about:config page, set "network.dns.disableIPv6" to "true".
+
+* Windows.
+
+** Clear saved Windows networking passwords.
+
+  cmd> rundll32.exe keymgr.dll, KRShowKeyMgr
+  cmd> control userpasswords2                 # another way