AB,
term@linux-nnjb:~> dig google.com
; <<>> DiG 9.5.0-P2 <<>> google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64066
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 256 IN A 74.125.67.100
google.com. 256 IN A 74.125.127.100
google.com. 256 IN A 74.125.45.100
;; Query time: 22 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Tue Jul 28 17:10:00 2009
;; MSG SIZE rcvd: 76
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
term@linux-nnjb:~> ip addr sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:04:5a:44:35:1a brd ff:ff:ff:ff:ff:ff
inet 192.168.5.102/24 brd 192.168.5.255 scope global eth0
inet6 fe80::204:5aff:fe44:351a/64 scope link
valid_lft forever preferred_lft forever
3: pan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 4a:98:8b:0f:b7:6c brd ff:ff:ff:ff:ff:ff
inet6 fe80::4898:8bff:fe0f:b76c/64 scope link
valid_lft forever preferred_lft forever
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
term@linux-nnjb:~> ip route sh
192.168.5.0/24 dev eth0 proto kernel scope link src 192.168.5.102
169.254.0.0/16 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 192.168.5.1 dev eth0
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
term@linux-nnjb:~> cat /etc/resolv.conf
/etc/resolv.conf file autogenerated by netconfig!
Before you change this file manually, consider to define the
static DNS configuration using the following variables in the
/etc/sysconfig/network/config file:
NETCONFIG_DNS_STATIC_SEARCHLIST
NETCONFIG_DNS_STATIC_SERVERS
NETCONFIG_DNS_FORWARDER
or disable DNS configuration updates via netconfig by setting:
NETCONFIG_DNS_POLICY=’’
See also the netconfig(8) manual page and other documentation.
Note: Manual change of this file disables netconfig too, but
may get lost when this file contains comments or empty lines
only, the netconfig settings are same with settings in this
file and in case of a “netconfig update -f” call.
Please remove (at least) this line when you modify the file!
nameserver 192.168.1.254
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I’m a little unsure on the last request. To access my router, I enter 192.168.1.254. That lists all sorts of info from my router. Or there is one called the IP Address/Name - 192.168.1.3
Let me know if that is what you’re looking for.