# HG changeset patch # User Oleksandr Gavenko # Date 1269457263 -7200 # Node ID 35f118ae3838203e85e799a165e382a7d7fac21c # Parent 481845507d3d5c5be0c49ed80c8a5e100d77b6cf# Parent 5a5b41d76f037c8eb7ae70dc5896b04e9d0efc54 Automated merge with file:///cygdrive/e/srv/hg/admin-doc diff -r 5a5b41d76f03 -r 35f118ae3838 gcc.rst --- 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 + +* Predefined macros. + + $ gcc -arch ppc -dM -E - < /dev/null | sort diff -r 5a5b41d76f03 -r 35f118ae3838 net.rst --- 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