[TriLUG] host IP address

Tim Jowers timjowers at gmail.com
Fri Mar 18 05:28:40 EDT 2011


No luck on Fedora. Must be an option to do it on ifconfig or ip.

[root at monsterfc bin]# uname -a
Linux monsterfc 2.6.34.7-63.fc13.i686.PAE #1 SMP Fri Dec 3 12:28:58
UTC 2010 i686 i686 i386 GNU/Linux

[root at monsterfc bin]# dig +short +search dmzview A

[root at monsterfc bin]# ip addr show eth1
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
    link/ether 00:16:76:7f:aa:44 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.101/24 brd 192.168.0.255 scope global eth1
    inet6 fe80::216:76ff:fe7f:aa44/64 scope link
       valid_lft forever preferred_lft forever

[root at monsterfc bin]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:16:76:7F:AA:44
          inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::216:76ff:fe7f:aa44/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:259765 errors:0 dropped:0 overruns:0 frame:0
          TX packets:284976 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:128587266 (122.6 MiB)  TX bytes:56499524 (53.8 MiB)
          Interrupt:21 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:247608 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247608 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:59157792 (56.4 MiB)  TX bytes:59157792 (56.4 MiB)

[root at monsterfc bin]# dig
; <<>> DiG 9.7.2-P3-RedHat-9.7.2-1.P3.fc13 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5053
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.				IN	NS

;; ANSWER SECTION:
.			354116	IN	NS	e.root-servers.net.
.			354116	IN	NS	i.root-servers.net.
.			354116	IN	NS	a.root-servers.net.
.			354116	IN	NS	k.root-servers.net.
.			354116	IN	NS	m.root-servers.net.
.			354116	IN	NS	j.root-servers.net.
.			354116	IN	NS	f.root-servers.net.
.			354116	IN	NS	b.root-servers.net.
.			354116	IN	NS	l.root-servers.net.
.			354116	IN	NS	c.root-servers.net.
.			354116	IN	NS	g.root-servers.net.
.			354116	IN	NS	h.root-servers.net.
.			354116	IN	NS	d.root-servers.net.

;; Query time: 7 msec
;; SERVER: 205.152.128.23#53(205.152.128.23)
;; WHEN: Fri Mar 18 05:23:03 2011
;; MSG SIZE  rcvd: 228

TimJowers


On Thu, Mar 17, 2011 at 9:25 PM, Alan Porter <porter at trilug.org> wrote:
>
> $ dig +short +search dmzview A
> 10.241.4.16
>
>
> You guys are better than MAN PAGES!
>
>
> Alan
>
>
>
>
>
> --
> This message was sent to: timjowers <timjowers at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/options/trilug/timjowers%40gmail.com
> TriLUG FAQ          : http://www.trilug.org/wiki/Frequently_Asked_Questions
>



More information about the TriLUG mailing list