scutil

     scutil --prefs [preference-file]
     scutil -r [-W] { nodename | address | local-address remote-address }
     scutil -w dynamic-store-key [-t timeout]
     scutil --get pref
     scutil --set pref [newval]
     scutil --dns
     scutil --proxy
When started without options, scutil prompts for commands.

Command line interface to the "dynamic store" data maintained by configd(8).
--prefs command line interface to the [raw] stored preference data.
Interaction with this data (using the SystemConfiguration.framework SCPreferences APIs) is handled with a set of commands read from standard input.
 list smackerPro sample
  path [0] = /NetworkServices
  path [1] = /Sets
  path [2] = /System
The first listed resolver(5) configuration is considered to be the "default" configuration.
Those containing a "domain" name will be used for queries matching the specified domain. Those without will be used as a "default" configuration in addition to the first listed.

Options

-r [-W] {
nodename |
address
|
local-address remote-address }
Check the network reachability of the specified host name, IP address, or a pair of local and remote IP addresses. One or more of the following strings will be reported to standard output.

Monitored reachability by specifying -W (watch) .
The current status is reported as well as the status when network configuration changes.

Not Reachable or not resolvable
Reachable  
Transient Connection e.g. PPP connection.
Connection Required this status would be returned for a dialup connection that was not currently active but could handle network traffic for the target system.
Connection Automatic a connection must first be established. Any traffic directed to the specified name/address will initiate the connection.
Local Address  
Directly Reachable Addresss via one of the interfaces on the system, a gateway will not be used.

A non-zero exit status: errors are detected and an message to standard error.

-w dynamic-store-key [-t timeout] If key exists in the "dynamic store" data maintained by configd(8) return with a zero exit status.
If not present, wait for timeout for data to be associated with or a notification to be posted using the key.
A non-zero exit status is returned if the key was not created/posted within the specified time. To wait indefinitely specify timeout = 0 .
Default: 15 seconds.
--get pref Display preferance on standard output.
ComputerName user-friendly name for the system.
LocalHostName local (Bonjour) host name.
HostName name associated with hostname and gethostname(3).
--set pref [newval] Updates pref with newval.
If newval is not specified it will be read from standard input.

Requires super-user access.

Supported prefs include: ComputerName, LocalHostName and HostName

--dnsreformatted
DNS configuration

resolver #1 domain: Germans 
            nameserver[0]: 192.168.1.1 nameserver[1]: 71.250.0.12 order: 200000 
resolver #2 domain: local                options: mdns timeout: 2 order: 300000 
resolver #3 domain: 254.169.in-addr.arpa options: mdns timeout: 2 order: 300200 
resolver #4 domain: 8.e.f.ip6.arpa       options: mdns timeout: 2 order: 300400 
resolver #5 domain: 9.e.f.ip6.arpa       options: mdns timeout: 2 order: 300600 
resolver #6 domain: a.e.f.ip6.arpa       options: mdns timeout: 2 order: 300800 
resolver #7 domain: b.e.f.ip6.arpa       options: mdns timeout: 2 order: 301000

DNS configuration (for scoped queries)

resolver #1
  search domain[0] : germans
  nameserver[0] : 192.168.1.1
  nameserver[1] : 71.250.0.12
  if_index : 5 (en1)
  flags    : Scoped
--proxy as of 10/09/11
<dictionary> {
  ExceptionsList :  {
    0 : *.local
    1 : 169.254/16
  }
  FTPPassive : 1
}
 list [pattern]                : list keys in data store
 show key ["pattern"]          : show values in data store w/key
 add key ["temporary"]         : add key in data store w/current dict
 get key                       : get dict from data store w/key
 set key                       : set key in data store w/current dict
 remove key                    : remove key from data store

 notify key                    : notify key in data store

 n.list ["pattern"]            : list notification keys  smackerPro as of 10/09/1:   "no notifier keys."
 n.add key ["pattern"]         : add 
 n.remove key ["pattern"]      : remove 
 n.changes                     : list changed keys
 n.watch                       : watch for changes
 n.cancel                      : cancel notification requests

 f.read file                   : process commands from file
 quit                          : quit

 d.show                        : show dictionary contents
 d.init                        : initialize (empty) dictionary  smackerpro as of 10/09/11  { }
 d.add key [*#?] val [v2 ...]  : add information to dictionary
       (*=array, #=number, ?=boolean)
 d.remove key                  : remove key from dictionary


See also configd(8)