[TriLUG] host IP address
Alan Porter
porter at trilug.org
Thu Mar 17 20:35:54 EDT 2011
> Funny you should phrase it like that.
>
> $ dig +short pepsi.com A
> 216.52.186.158
I *did* try that... without the 'A'.
I think I am seeing a deeper problem...
$ dig +short dmzview A
$ dig dmzview A
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> dmzview A
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36781
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dmzview. IN A
;; Query time: 0 msec
;; SERVER: 10.241.1.13#53(10.241.1.13)
;; WHEN: Thu Mar 17 20:31:59 2011
;; MSG SIZE rcvd: 25
Oh wait...
$ dig +short dmzview.ssz.tekelec.com A
10.241.4.16
I bet it's my resolv.conf...
$ cat /etc/resolv.conf
search ssz.tekelec.com tekelec.com nc.tekelec.com
nameserver 10.241.1.13
nameserver 10.241.1.11
nameserver 10.20.1.11
$
Nope... not sure why it works for a FQDN, but not for the short hostname.
Thanks for the answer, though!
Alan
.
More information about the TriLUG
mailing list